Smallest Blink Sketch Ever?

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

0033mer

0033mer

7 ай бұрын

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
@onecircuit-as
@onecircuit-as 7 ай бұрын
0 Blink 1 Make Coffee 2 Mow Lawn
@smug_cat1
@smug_cat1 7 ай бұрын
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!"); }
@jackwody7774
@jackwody7774 7 ай бұрын
Even simpler is to complement the LED state, call the delay, then loop
@jerril42
@jerril42 7 ай бұрын
Thank you! Happy Holidays. All the best to you and your family in 2024.
@0033mer
@0033mer 7 ай бұрын
Thank You .. Happy New Year.
@pablofpv
@pablofpv 7 ай бұрын
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 7 ай бұрын
Yes ... you are correct. You would make a good detective.
@Edmorbus
@Edmorbus 7 ай бұрын
Thanks for sharing and happy new year
@0033mer
@0033mer 7 ай бұрын
You're welcome. Happy new year to you.
@markgreco1962
@markgreco1962 7 ай бұрын
You were right that was interesting
@GoatZilla
@GoatZilla 5 ай бұрын
suspect there's a way to make the sketch smaller...
@kylekulhank
@kylekulhank 7 ай бұрын
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 7 ай бұрын
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 7 ай бұрын
Great video Ken, but I have to say... "Easier with a Scamp!" ;) Happy new year.
@0033mer
@0033mer 7 ай бұрын
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 7 ай бұрын
👍👍
@harveyellis6758
@harveyellis6758 7 ай бұрын
Smallest is to use 555 timer. No code needed ;-)
@p_mouse8676
@p_mouse8676 7 ай бұрын
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 7 ай бұрын
My favourite coding language: solder
@0033mer
@0033mer 7 ай бұрын
Use a blinking LED. No 555 needed. :o)
@paulthomas4917
@paulthomas4917 7 ай бұрын
the smallest, one relay one cap.
@goodgamer339
@goodgamer339 7 ай бұрын
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.
@nanoIam
@nanoIam 7 ай бұрын
Elon Musk could make it smaller if he wanted to 😤
Pico W Primer / WebMite / LoRa
9:19
0033mer
Рет қаралды 1,2 М.
Propeller Effects. #aviation #propeller #pilot
0:35
flight-club
Рет қаралды 1 МЛН
아이스크림으로 체감되는 요즘 물가
00:16
진영민yeongmin
Рет қаралды 63 МЛН
路飞太过分了,自己游泳。#海贼王#路飞
00:28
路飞与唐舞桐
Рет қаралды 21 МЛН
Alex hid in the closet #shorts
00:14
Mihdens
Рет қаралды 14 МЛН
Tip Of The Day / Switch Contact Debounce Circuit
5:28
0033mer
Рет қаралды 2,8 М.
Flashing LEDs - Z80 Style
23:07
Julian Ilett
Рет қаралды 93 М.
Project Two Inverter Sync
0:48
Macro Energy Solutions
Рет қаралды 102
Vibration Experiments / Physics 12 Lab
1:22
0033mer
Рет қаралды 2,5 М.
The 10,000 Year Shift Register
33:52
Julian Ilett
Рет қаралды 87 М.
MAP Sensor Interface / Manifold Absolute Pressure / Testing
6:28
LS2 Ignition Coil Tester /  D585
5:41
0033mer
Рет қаралды 1,5 М.
Rpi Pico Prototyping / Picomite / Box Enclosure
4:38
0033mer
Рет қаралды 972
Как удвоить напряжение? #электроника #умножитель
1:00
Hi Dev! – Электроника
Рет қаралды 1 МЛН
Tag her 🤭💞 #miniphone #smartphone #iphone #samsung #fyp
0:11
Pockify™
Рет қаралды 73 МЛН
Хакер взломал компьютер с USB кабеля. Кевин Митник.
0:58
Последний Оплот Безопасности
Рет қаралды 386 М.
Здесь упор в процессор
18:02
Рома, Просто Рома
Рет қаралды 420 М.