Add Blink code

This commit is contained in:
coolneng 2019-11-08 18:14:40 +01:00
parent 400f4bc2d3
commit 8d3687bafc
3 changed files with 88 additions and 0 deletions

BIN
Blink/Blink.arduino.avr.uno.elf Executable file

Binary file not shown.

View File

@ -0,0 +1,64 @@
:100000000C945C000C946E000C946E000C946E00CA
:100010000C946E000C946E000C946E000C946E00A8
:100020000C946E000C946E000C946E000C946E0098
:100030000C946E000C946E000C946E000C946E0088
:100040000C9435010C946E000C946E000C946E00B0
:100050000C946E000C946E000C946E000C946E0068
:100060000C946E000C946E00000000080002010069
:100070000003040700000000000000000000000072
:10008000250028002B0000000000240027002A0083
:10009000040404040404040402020202020203032E
:1000A0000303030301020408102040800102040836
:1000B000102001020408102011241FBECFEFD8E049
:1000C000DEBFCDBF21E0A0E0B1E001C01D92A930AC
:1000D000B207E1F70E947F010C94F4010C94000038
:1000E00090E0FC01EC55FF4F249180579F4FFC019D
:1000F0008491882399F090E0880F991FFC01EA57BA
:10010000FF4FA591B491FC01E458FF4F8591949164
:100110008FB7F894EC91E22BEC938FBF089590E0A9
:10012000FC01E859FF4F2491FC01EC55FF4F34913D
:10013000FC01E057FF4FE491EE23C9F0222339F090
:10014000233001F1A8F4213019F1223029F1F0E037
:10015000EE0FFF1FE458FF4FA591B4918FB7F894AD
:10016000EC91611126C030953E233C938FBF0895DA
:100170002730A9F02830C9F0243049F78091800059
:100180008F7D03C0809180008F7780938000DFCFC8
:1001900084B58F7784BDDBCF84B58F7DFBCF809115
:1001A000B0008F778093B000D2CF8091B0008F7D68
:1001B000F9CF3E2BDACF3FB7F894809105019091AB
:1001C0000601A0910701B091080126B5A89B05C0C2
:1001D0002F3F19F00196A11DB11D3FBFBA2FA92FC6
:1001E000982F8827BC01CD01620F711D811D911DC3
:1001F00042E0660F771F881F991F4A95D1F708952F
:100200008F929F92AF92BF92CF92DF92EF92FF9226
:100210000E94DB004B015C0184E6C82ED12CE12C4E
:10022000F12C0E94DB00681979098A099B09683E54
:10023000734081059105A8F321E0C21AD108E108B5
:10024000F10888EE880E83E0981EA11CB11CC11431
:10025000D104E104F10429F7FF90EF90DF90CF90F3
:10026000BF90AF909F908F9008951F920F920FB6FE
:100270000F9211242F933F938F939F93AF93BF932C
:100280008091010190910201A0910301B0910401BC
:100290003091000123E0230F2D3758F50196A11D61
:1002A000B11D209300018093010190930201A0935E
:1002B0000301B09304018091050190910601A09182
:1002C0000701B09108010196A11DB11D80930501A0
:1002D00090930601A0930701B0930801BF91AF91DD
:1002E0009F918F913F912F910F900FBE0F901F9074
:1002F000189526E8230F0296A11DB11DD2CF789440
:1003000084B5826084BD84B5816084BD85B582601A
:1003100085BD85B5816085BD80916E0081608093CB
:100320006E00109281008091810082608093810034
:100330008091810081608093810080918000816044
:10034000809380008091B10084608093B10080919F
:10035000B00081608093B00080917A0084608093C7
:100360007A0080917A00826080937A0080917A008E
:10037000816080937A0080917A00806880937A000F
:100380001092C10087E00E94700085E00E9470001A
:1003900083E00E947000C0E0D0E061E087E00E944E
:1003A0008F000E94000160E087E00E948F000E94A1
:1003B000000161E085E00E948F000E94000160E082
:1003C00085E00E948F000E94000161E083E00E94AE
:1003D0008F000E94000160E083E00E948F00209760
:0C03E000E1F20E940000D9CFF894FFCF9A
:00000001FF

24
Blink/Blink.ino Normal file
View File

@ -0,0 +1,24 @@
// Blink
void setup() {
pinMode(7, OUTPUT);
pinMode(5, OUTPUT);
pinMode(3, OUTPUT);
}
void loop() {
int pin1 = 7;
int pin2 = 5;
int pin3 = 3;
int time = 100;
digitalWrite(pin1, HIGH);
delay(time);
digitalWrite(pin1, LOW);
delay(time);
digitalWrite(pin2, HIGH);
delay(time);
digitalWrite(pin2, LOW);
delay(time);
digitalWrite(pin3, HIGH);
delay(time);
digitalWrite(pin3, LOW);
}