Browse Source

Add files via upload

master
Hendrik Schutter 5 years ago committed by GitHub
parent
commit
2e17462192
  1. 51
      MicroNavFPV.ino
  2. 66
      MicroNavFPV.ino_attiny13a_9600000LL.hex

51
MicroNavFPV.ino

@ -0,0 +1,51 @@
boolean counter = true;
void setup() {
pinMode(0, OUTPUT); //FPV
pinMode(1, OUTPUT); //Spot
pinMode(2, OUTPUT); //Nav
pinMode(3, INPUT); //FPV Switch
pinMode(4, INPUT); // Light 3 Pos Switch // 1000000
}
void loop() {
if (pulseIn(3, HIGH, 100000000) > 1500) // FPV
{
digitalWrite(0, HIGH); //Night ON
} else {
digitalWrite(0, LOW); //Night OFF
}
delay(100);
if (pulseIn(4, HIGH, 10000000) < 1300) //Light
{
digitalWrite(1, LOW); //Spot OFF // Light SW lower pos
digitalWrite(2, LOW); //Nav OFF
} else {
if (pulseIn(4, HIGH, 10000000) > 1850)
{
digitalWrite(1, HIGH); //Spot ON // Light SW upper pos
navLights(); //Nav ON
} else {
digitalWrite(1, HIGH); //Spot ON // Light SW mid pos
digitalWrite(2, LOW); //Nav OFF
}
}
delay(100);
}
void navLights() {
if (counter) {
counter = false;
digitalWrite(2, HIGH);
delay(50);
digitalWrite(2, LOW);
delay(50);
digitalWrite(2, HIGH);
delay(50);
digitalWrite(2, LOW);
delay(50);
} else {
counter = true;
}
}

66
MicroNavFPV.ino_attiny13a_9600000LL.hex

@ -0,0 +1,66 @@
:1000000009C021C020C0BDC01EC01DC01CC01BC077
:10001000DDC019C011241FBECFE9CDBF10E0A0E69E
:10002000B0E0E8EFF3E002C005900D92A236B10710
:10003000D9F720E0A2E6B0E001C01D92AA36B207CF
:10004000E1F7E9D0D7C1DCCF8630A0F4823038F4B4
:100050009FB5811102C09F7701C09F7D9FBD26B3D0
:1000600030E0A90102C0559547958A95E2F7CA018B
:100070008170089580E008953FB7F89480916600FC
:1000800090916700A0916800B091690022B73FBFCE
:10009000BA2FA92F982F8827BC01CD01620F711D9F
:1000A000811D911D27E030E040E050E02DD1B901E5
:1000B000CA0108954F925F926F927F928F929F92A2
:1000C000AF92BF92CF92DF92EF92FF92CF93C82F61
:1000D0002A013B01D1DF6B017C018C2FB5DF813020
:1000E000E1F4CADFDC01CB018C199D09AE09BF091F
:1000F000481659066A067B0680F760E070E0CB017F
:1001000029C0BADFDC01CB018C199D09AE09BF09FA
:10011000481659066A067B0680F38C2F95DF8130DE
:1001200081F7AADF4B015C018C2F8EDF813069F4EF
:10013000A3DFDC01CB018C199D09AE09BF0948166C
:1001400059066A067B0680F7D8CF96DF68197909C9
:100150008A099B09CF91FF90EF90DF90CF90BF90DD
:10016000AF909F908F907F906F905F904F90089589
:10017000EFE5F9E03197F1F700C000000197C1F712
:1001800008951F920F920FB60F9211248F939F9391
:10019000AF93BF938091660090916700A091680033
:1001A000B09169000196A11DB11D809366009093E6
:1001B0006700A0936800B0936900BF91AF919F91D1
:1001C0008F910F900FBE0F901F9018951F920F9256
:1001D0000FB60F9211248F939F93AF93BF9380918B
:1001E000620090916300A0916400B0916500019657
:1001F000A11DB11D8093620090936300A0936400E1
:10020000B0936500BF91AF919F918F910F900FBEFA
:100210000F901F90189583B7836083BF8FB583605D
:100220008FBDF894A89580E481BD789413BE83B700
:10023000836083BF89B7826089BF12BE789417B884
:1002400086B1876886B9B89AB99ABA9ABB98BC98A9
:10025000C1E040E051EE65EF75E083E02BDF6D3DDE
:1002600075408105910528F08FB58F778FBDC09AB5
:1002700004C08FB58F778FBDC09884E690E078DF9B
:1002800040E856E968E970E084E014DF64317540C5
:100290008105910528F48FB58F7D8FBDC1982DC044
:1002A00040E856E968E970E084E004DF6B337740AA
:1002B00081059105F0F08FB58F7D8FBDC19A80913A
:1002C0006000882399F010926000C29A82E390E067
:1002D0004FDFC29882E390E04BDFC29A82E390E066
:1002E00047DFC29882E390E043DF08C0C09360001C
:1002F00005C08FB58F7D8FBDC19AC29884E690E00E
:1003000037DFA7CF68940013E894A0E0B0E0EAE8F4
:10031000F1E01DC0EFEFE7F959016A015E23550FC7
:10032000EE08FE2C87019B01AC019E23990F660B02
:10033000762FCB0131D0CDB7DD27EAE01FC02F9259
:100340003F924F925F926F927F928F929F92AF9265
:10035000BF92CF92DF92EF92FF920F931F93CF93B2
:10036000DF93CDB7CA1BCDBFDD2709942A88398812
:1003700048885F846E847D848C849B84AA84B9843D
:10038000C884DF80EE80FD800C811B81AA81D98129
:10039000CE0FCDBFCA2F0895DF93CF939F92A0E4D5
:1003A0009A2E0024D001E001F00116950795F794EC
:1003B000E794D794C794B794A79448F41068A20F11
:1003C000B31FC41FD51FE61FF71F081E191E220FDB
:1003D000331F441F551F661F771F881F991F9A944C
:1003E00021F79D01AE01BF01C00111249F90CF9163
:0803F000DF910895F894FFCF9E
:0203F800010002
:00000001FF
Loading…
Cancel
Save

Du besuchst diese Seite mit einem veralteten IPv4-Internetzugang. Möglicherweise treten in Zukunft Probleme mit der Erreichbarkeit und Performance auf. Bitte frage deinen Internetanbieter oder Netzwerkadministrator nach IPv6-Unterstützung.
You are visiting this site with an outdated IPv4 internet access. You may experience problems with accessibility and performance in the future. Please ask your ISP or network administrator for IPv6 support.
Weitere Infos | More Information
Klicke zum schließen | Click to close