From 3408e35786c267934e98ef80763b358858431c3f Mon Sep 17 00:00:00 2001 From: Jens True Date: Fri, 19 Mar 2021 18:22:04 +0100 Subject: [PATCH] LED pins not present on MinimOSD --- examples/HelloWorld/HelloWorld.ino | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/examples/HelloWorld/HelloWorld.ino b/examples/HelloWorld/HelloWorld.ino index aa8f063..3132a6a 100644 --- a/examples/HelloWorld/HelloWorld.ino +++ b/examples/HelloWorld/HelloWorld.ino @@ -1,9 +1,6 @@ #include #include -#define redLed 3 -#define greenLed 4 - MAX7456 osd; unsigned long counter = 0; byte tab[]={0xED,0xEE, 0xEF, 0xF3}; @@ -23,27 +20,13 @@ void setup() osd.printMAX7456Char(0xFB,9,6,true); osd.print("00'00\"",10,6); - osd.printMAX7456Chars(tab,sizeof(tab),12,7); - pinMode(redLed,OUTPUT); - pinMode(greenLed,OUTPUT); + osd.printMAX7456Chars(tab,sizeof(tab),12,1); - //base time = 160ms,time on = time off. } void loop() { - if(counter%2 == 0) - { - digitalWrite(redLed,LOW); - digitalWrite(greenLed,HIGH); - } - else - { - digitalWrite(redLed,HIGH); - digitalWrite(greenLed,LOW); - } - counter = millis()/1000; osd.print(int(counter/60),10,6,2,0,false,true);