This is just a fun video to show a small blink sketch. The sketch is run on the Parallax Propeller P1 running Tachyon Forth. Tachyon Forth: sourceforge.net/projects/tach... NCO Timer video: • Create PWM and NCO sig...
Пікірлер: 37
@jackwody77746 ай бұрын
Even simpler is to complement the LED state, call the delay, then loop
@jerril426 ай бұрын
Thank you! Happy Holidays. All the best to you and your family in 2024.
@0033mer6 ай бұрын
Thank You .. Happy New Year.
@onecircuit-as6 ай бұрын
0 Blink 1 Make Coffee 2 Mow Lawn
@smug_cat16 ай бұрын
const int eyePin = 13; void setup() { pinMode(eyePin, OUTPUT); } void loop() { blink(); delay(5000); // Wait for 5 seconds before the next task makeCoffee(); delay(5000); // Wait for 5 seconds before the next task mowLawn(); delay(5000); // Wait for 5 seconds before the next task } void blink() { digitalWrite(eyePin, HIGH); delay(500); // Eye blinking duration digitalWrite(eyePin, LOW); } void makeCoffee() { Serial.println("Making coffee... Oops, the coffee machine is on strike!"); } void mowLawn() { Serial.println("Mowing the lawn... with a pair of scissors!"); }
@pablofpv6 ай бұрын
The blink example is from "Getting Started with Arduino" Massimo Banzi 2nd edition 😃, I don't know what is worse, that I'm watching this over the holidays or that I actually recognized the page! Thanks for videos 😊.
@0033mer6 ай бұрын
Yes ... you are correct. You would make a good detective.
@markgreco19626 ай бұрын
You were right that was interesting
@Edmorbus6 ай бұрын
Thanks for sharing and happy new year
@0033mer6 ай бұрын
You're welcome. Happy new year to you.
@GoatZilla4 ай бұрын
suspect there's a way to make the sketch smaller...
@kylekulhank6 ай бұрын
I thought this was going to get into bare metal programming with machine language. Your parallax code is still a huge program, you just don't see it because it's behind a bunch of classes and libraries.
@0033mer6 ай бұрын
At the beginning of the video and in the description I indicated it was just a "fun" video. Most of the viewers caught on and ran with it giving their funny solutions. The purpose of the video was to show beginners how they could type a few simple commands to get an instant response from a microcontroller. I have done other videos using assembler and the response was " nobody does assembler anymore" so as a content creator you lose either way.
@johncatsoulis6 ай бұрын
Great video Ken, but I have to say... "Easier with a Scamp!" ;) Happy new year.
@0033mer6 ай бұрын
Yes, I was thinking that if "Blink" would continue to blink. Happy New Year John. Just watched the news. I see you have had some storm activity in your area.
@Cyklonus6 ай бұрын
👍👍
@nanoIam6 ай бұрын
Elon Musk could make it smaller if he wanted to 😤
@harveyellis67586 ай бұрын
Smallest is to use 555 timer. No code needed ;-)
@p_mouse86766 ай бұрын
Definitely not smallest. Smaller is one Schmitt inverter and it can even be done with just two transistors or even a single one with a bit of trickery😉👍😎
@pileofstuff6 ай бұрын
My favourite coding language: solder
@0033mer6 ай бұрын
Use a blinking LED. No 555 needed. :o)
@paulthomas49176 ай бұрын
the smallest, one relay one cap.
@goodgamer3396 ай бұрын
But even if we are talking about a real sketch this isn't the smallest one possible. You can reduce the compiled program size massively by switching the pins directly, not using the libraries for delays or anything and deleting the loop and setup and just using your own main. So even in the realm of blinking an led via code this is still not the smallest sketch.