The frustrations of working with Arduino C. Actually, this was great fun. Maybe I like C after all.
Good morning all…
Youtuber, shed dweller, solar charge controller aficionado
This site uses Akismet to reduce spam. Learn how your comment data is processed.
C has its annoyances. for example you can't easily just scanf a dynamic length string, or in your case address single bits.
How to connect the software with hardware…plz show
OR turns bits on, AND turns bits off. C is just a little higher than assembly. Not a really high level language
Loved this video, it has inspired me to play with that dds board and given a useful insight into programming the registers.
should use the 16 bit msp430, its architecture is not unlike the pdp11 – or you could program it in C !
msbyte |=(1<<6); I get the error: 'msbyte' does not name a type… How do I fix this error?
Thanks…
Char = Character
Yes, the |= (1 << n) is a bit ugly. Why not just OR it? msbyte |= 0x40; or like this: msbyte = msbyte | 0x40; That would set a bit (or bits). Clear a bit with AND (&). msbyte &= 0x7f would clear bit 7
Julian!! For the first time I will strongly disagree with you 🙂
I LOVE C!!
First job 20 years ago was writing real-time C applications on 68000. Loved it ever since.
Don't dis the C Julian – you've been warned LOL!!
So now that's sorted, learning how the frequency for octaves worked is fascinating.
Technically Arduino isn't really C is it? Isn't it some sort of candy coated, twisted, abomination of C to make it easier for beginners to pick up? Its kind of like what Ti did with their Ti-BASIC for their graphing calculators that is a modified version of BASIC.
This certainly was hard to watch Julian.
Sorry 🙁
char is short for character. If you have char array you have a C String. If you char * arrayName = malloc(sizeof(char) * 20); you have C String that can be resized because it's on the heap instead of the stack – which also means that you have to free the memory when your done.
The compiler for the adwino is just no that grate. It gives you only one error at a time and gives some relay cryptic messages. The only thing worse is the IDE.
Am I the only one who enjoyed this leap year edition of musical Julian?