LED pins not present on MinimOSD
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@ -1,9 +1,6 @@
|
|||||||
#include <SPI.h>
|
#include <SPI.h>
|
||||||
#include <MAX7456.h>
|
#include <MAX7456.h>
|
||||||
|
|
||||||
#define redLed 3
|
|
||||||
#define greenLed 4
|
|
||||||
|
|
||||||
MAX7456 osd;
|
MAX7456 osd;
|
||||||
unsigned long counter = 0;
|
unsigned long counter = 0;
|
||||||
byte tab[]={0xED,0xEE, 0xEF, 0xF3};
|
byte tab[]={0xED,0xEE, 0xEF, 0xF3};
|
||||||
@ -23,27 +20,13 @@ void setup()
|
|||||||
|
|
||||||
osd.printMAX7456Char(0xFB,9,6,true);
|
osd.printMAX7456Char(0xFB,9,6,true);
|
||||||
osd.print("00'00\"",10,6);
|
osd.print("00'00\"",10,6);
|
||||||
osd.printMAX7456Chars(tab,sizeof(tab),12,7);
|
osd.printMAX7456Chars(tab,sizeof(tab),12,1);
|
||||||
pinMode(redLed,OUTPUT);
|
|
||||||
pinMode(greenLed,OUTPUT);
|
|
||||||
|
|
||||||
//base time = 160ms,time on = time off.
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void loop()
|
void loop()
|
||||||
{
|
{
|
||||||
if(counter%2 == 0)
|
|
||||||
{
|
|
||||||
digitalWrite(redLed,LOW);
|
|
||||||
digitalWrite(greenLed,HIGH);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
digitalWrite(redLed,HIGH);
|
|
||||||
digitalWrite(greenLed,LOW);
|
|
||||||
}
|
|
||||||
|
|
||||||
counter = millis()/1000;
|
counter = millis()/1000;
|
||||||
|
|
||||||
osd.print(int(counter/60),10,6,2,0,false,true);
|
osd.print(int(counter/60),10,6,2,0,false,true);
|
||||||
|
Reference in New Issue
Block a user