<int Pot_pin(A0);//********
int Button_pin(A1);//*****
int irDecode(2);//*******
const int SENSOR_PIN = 4; // ****** Arduino pin-4 to Temp_sensor "DS18B20" 's DQ pin
int Triac_Gate_opto = 5;//******************
int Zero_crossing_opto = 8;// ****************
IRsmallDecoder irDecoder(2); // Arduino pin-2 connected to IR Decoder s "data pin"
irSmallD_t irData; // IR decoded Data store>
[date=2022-07-13 timezone="Asia/Karachi"]variable/ register;
~~~~~~~
If this is a tutorial, it would be good to explain what this means.
Then study C. You can do that online these days. Also look at Arduino examples and other sketches for clues.
When you programmed PIC, did you try to guess the code syntax, or consult some reference?
Your topic was moved to its current location as it is more suitable.
Could you also take a few moments to Learn How To Use The Forum.
It will help you get the best out of the forum in the future.
Thank you
yes sir
i did much in pic assembly....but knows nothing in c....and trying to learn much harder...but every day I realize assembly is much, much easier than c...but alas assembly support is disappearing every minute.....sorry for botheration... i must read posting rules...sorry again
Sir
sorry for inconvenience
following your advice
Learn How To Use The Forum
I used to only program in PIC assembly, then I decided I really had to learn C. I've never looked back, once you get your head around it C is MUCH easier. Once you know C you can move on to C++ if you like, or just stick with C. I found this website very helpful C Tutorial , but there are plenty of others.
If you are doing it for arduino just start with some of the basic tutorials and go from there. Also there are good YouTube tutorials such as
The arduino reference is quite straight forward even if not complete
Here is the int syntax you are looking for
Thanks again
and you may know my frustration at initial stage
Many of us "old geezers" started with assembly, and other abominations(PL/M comes to mind; there may even be a few with firsthand punchcard, mag tape, and maybe even "toggle switch" programming, though I'd never admit to it). Most of us survived!
Enjoy your learning voyage!
C
Punched paper tape!
I guess I'm a newbie since I stared with Hollerith cards and a keypunch.
And FORTRAN.
Yeah, the toggle switch part was the diabolical idea of my first year college instructor; I think he wanted to make us more appreciative of assembly language...
C
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.