Tinkercad + Arduino Lesson 5: Masking and Bitwise Operators

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

Thank you so much for making this accessible to everyone! Beautifully explained, fun, perfect pace, love it!

MrVouligny
Автор

Wow I used to hate C++ coding, now after watching your Bit coding, C++ isn't that bad🤣🤣

EM-zjul
Автор

Who would have thought playing Turing Complete like a nerd would actually help understand the bit system

dharveyftw
Автор

You lecture is awesome! I've been following along for a couple hours and it's addictive.
For the assignment sadly you provide no solutions to verify our answers.
I don't have an arduino at hand to check and Tinkercad has some weird Fade In/Out animation for the LEDs that makes it hard to verify the timings.
Would the following be correct?
int main(void){
DDRD = 0b11110000; //Set 4 outputs;
PORTD = //Set bit6 to on;
while(1) {
PORTD = PORTD ^ 0b10010000; //Toggle bit7 and bit4;
_delay_ms(500);
PORTD = PORTD ^ 0b00010000; //Toggle bit4;
_delay_ms(500);
}
}

JohnSmith-yfws
Автор

this bit system for the coding in tinkercad can be very useful but because i am used with pinMode etc. method it will be will be realy hard to make this change! but i will try it!

aamirali
join shbcf.ru