Smallest Blink Sketch Ever?

  Рет қаралды 2,147

0033mer

0033mer

6 ай бұрын

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
@jackwody7774
@jackwody7774 6 ай бұрын
Even simpler is to complement the LED state, call the delay, then loop
@jerril42
@jerril42 6 ай бұрын
Thank you! Happy Holidays. All the best to you and your family in 2024.
@0033mer
@0033mer 6 ай бұрын
Thank You .. Happy New Year.
@onecircuit-as
@onecircuit-as 6 ай бұрын
0 Blink 1 Make Coffee 2 Mow Lawn
@smug_cat1
@smug_cat1 6 ай бұрын
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!"); }
@pablofpv
@pablofpv 6 ай бұрын
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 😊.
@0033mer
@0033mer 6 ай бұрын
Yes ... you are correct. You would make a good detective.
@markgreco1962
@markgreco1962 6 ай бұрын
You were right that was interesting
@Edmorbus
@Edmorbus 6 ай бұрын
Thanks for sharing and happy new year
@0033mer
@0033mer 6 ай бұрын
You're welcome. Happy new year to you.
@GoatZilla
@GoatZilla 4 ай бұрын
suspect there's a way to make the sketch smaller...
@kylekulhank
@kylekulhank 6 ай бұрын
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.
@0033mer
@0033mer 6 ай бұрын
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.
@johncatsoulis
@johncatsoulis 6 ай бұрын
Great video Ken, but I have to say... "Easier with a Scamp!" ;) Happy new year.
@0033mer
@0033mer 6 ай бұрын
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.
@Cyklonus
@Cyklonus 6 ай бұрын
👍👍
@nanoIam
@nanoIam 6 ай бұрын
Elon Musk could make it smaller if he wanted to 😤
@harveyellis6758
@harveyellis6758 6 ай бұрын
Smallest is to use 555 timer. No code needed ;-)
@p_mouse8676
@p_mouse8676 6 ай бұрын
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😉👍😎
@pileofstuff
@pileofstuff 6 ай бұрын
My favourite coding language: solder
@0033mer
@0033mer 6 ай бұрын
Use a blinking LED. No 555 needed. :o)
@paulthomas4917
@paulthomas4917 6 ай бұрын
the smallest, one relay one cap.
@goodgamer339
@goodgamer339 6 ай бұрын
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.
Tip Of The Day / Switch Contact Debounce Circuit
5:28
0033mer
Рет қаралды 2,8 М.
Became invisible for one day!  #funny #wednesday #memes
00:25
Watch Me
Рет қаралды 54 МЛН
Who has won ?? 😀 #shortvideo #lizzyisaeva
00:24
Lizzy Isaeva
Рет қаралды 27 МЛН
The Numitron: An obvious idea that wasn't very bright
23:21
Technology Connections
Рет қаралды 1 МЛН
Pico W Primer / WebMite / LoRa
9:19
0033mer
Рет қаралды 1,2 М.
This weird metal is insanely bouncy
18:03
Steve Mould
Рет қаралды 9 МЛН
Top Fifteen Mistakes People Make When Designing Prototype PCBs
12:26
Cosplay Light and Sound
Рет қаралды 134 М.
This Video is About Electroadhesion.
14:05
Reactions
Рет қаралды 16 М.
We should use this amazing mechanism that's inside a grasshopper leg
19:19
Getting Started With Robotics / PWM / PCA9685
8:57
0033mer
Рет қаралды 1,7 М.
Simple maintenance. #leddisplay #ledscreen #ledwall #ledmodule #ledinstallation
0:19
LED Screen Factory-EagerLED
Рет қаралды 27 МЛН
Мой инст: denkiselef. Как забрать телефон через экран.
0:54
Choose a phone for your mom
0:20
ChooseGift
Рет қаралды 6 МЛН
YOTAPHONE 2 - СПУСТЯ 10 ЛЕТ
15:13
ЗЕ МАККЕРС
Рет қаралды 183 М.