Fixed makefile so i can get started with the good stuff.

This commit is contained in:
2020-01-28 23:00:01 +00:00
parent d038eb1280
commit 2f1c3d6eb2
62 changed files with 570 additions and 462 deletions

View File

@@ -3,12 +3,9 @@
BOARD_TAG = pro
BOARD_SUB = 8MHzatmega328
USER_LIB_PATH += /home/ricardo/Arduino/libraries
ARDUINO_LIBS += Adafruit_GFX_Library \
SoftwareSerial \
Adafruit_SSD1306 \
SPI \
Wire
ARDUINO_DIR = /home/ricardo/Installs/arduino-1.8.7
ARDUINO_LIBS += LiquidCrystal
ARDUINO_DIR = /home/ricardo/Installs/arduino-1.8.11/
MONITOR_PORT = /dev/ttyUSB0
-include /usr/share/arduino/Arduino.mk
-include /home/ricardo/Installs/Arduino-Makefile-1.6.0/Arduino.mk

View File

@@ -0,0 +1 @@
:00000001FF

Binary file not shown.

View File

@@ -0,0 +1,111 @@
:100000000C945D000C9485000C9485000C94850084
:100010000C9485000C9485000C9485000C9485004C
:100020000C9485000C9485000C9485000C9485003C
:100030000C9485000C9485000C9485000C9485002C
:100040000C9467020C9485000C9485000C94850038
:100050000C9485000C9485000C9485000C9485000C
:100060000C9485000C94850000000008000201003B
:100070000003040700000000000000000000000072
:10008000250028002B0000000000240027002A0083
:10009000040404040404040402020202020203032E
:1000A0000303030301020408102040800102040836
:1000B0001020010204081020290311241FBECFEFD5
:1000C000D8E0DEBFCDBF11E0A0E0B1E0E4EAF6E0A9
:1000D00002C005900D92A832B107D9F721E0A8E23D
:1000E000B1E001C01D92A934B207E1F710E0CDE5FF
:1000F000D0E004C02197FE010E944A03CC35D1070D
:10010000C9F70E94B1020C9447030C94000090E0E0
:10011000FC01EC55FF4F249180579F4FFC018491C7
:10012000882399F090E0880F991FFC01EA57FF4F50
:10013000A591B491FC01E458FF4F859194918FB73C
:10014000F894EC91E22BEC938FBF089590E0FC01C2
:10015000E859FF4F2491FC01EC55FF4F3491FC010D
:10016000E057FF4FE491EE23C9F0222339F023300A
:1001700001F1A8F4213019F1223029F1F0E0EE0F5D
:10018000FF1FE458FF4FA591B4918FB7F894EC91FD
:10019000611126C030953E233C938FBF08952730D0
:1001A000A9F02830C9F0243049F7809180008F7D74
:1001B00003C0809180008F7780938000DFCF84B56B
:1001C0008F7784BDDBCF84B58F7DFBCF8091B0006E
:1001D0008F778093B000D2CF8091B0008F7DF9CF20
:1001E0003E2BDACFAF92BF92CF92DF92EF92FF9287
:1001F0000F931F93CF93DF936C017B018B01040F4F
:10020000151FEB015E01AE18BF08C017D10759F0EA
:100210006991D601ED91FC910190F081E02DC6012C
:100220000995892B79F7C501DF91CF911F910F9126
:10023000FF90EF90DF90CF90BF90AF90089508951A
:1002400090E080E00895CF93DF93EC0160E08E8131
:100250000E94A60061E08E810E94A60060E08E816F
:100260000E94A60084EC90E00197F1F7DF91CF9116
:100270000895CF92DF92EF92FF920F931F93CF9347
:10028000DF936C017C0187E0E80EF11CD0E0C0E058
:10029000062F10E0B8010C2E02C0759567950A94E0
:1002A000E2F76170F70181917F010E94A60021961B
:1002B000C430D10579F7C601DF91CF911F910F911D
:1002C000FF90EF90DF90CF900C942301CF92DF92BC
:1002D000EF92FF920F931F93CF93DF93EC01F62ED3
:1002E000642F8C810E94A6008D818F3F19F060E001
:1002F0000E94A6000F2D10E08F8584FF25C06E019F
:1003000087E0C80ED11CF12CE12CB8010E2C02C0E4
:10031000759567950A94E2F76170F60181916F0116
:100320000E94A600FFEFEF1AFF0A88E0E816F1042A
:1003300061F7CE01DF91CF911F910F91FF90EF9068
:10034000DF90CF900C942301B80184E075956795F8
:100350008A95E1F7CE010E9439016F2DCE01DF9120
:10036000CF911F910F91FF90EF90DF90CF900C9461
:10037000390140E0682F81E391E00C946601CF934E
:10038000DF93823029F4909140019860909340016E
:10039000809344011092450180E48093460180E1FE
:1003A0008093470180E580934801809135010E9448
:1003B0008700809136018F3F11F00E948700809165
:1003C00037010E948700C1E3D1E09E0121533140F3
:1003D0008091400184FD0AC084E090E021962817B6
:1003E00039073CF48E810E948700EFCF88E090E0CF
:1003F000F5CF8CE996E80197F1F760E0809135013F
:100400000E94A60060E0809137010E94A6008091C2
:1004100036018F3F19F060E00E94A60080914001F4
:1004200084FD39C063E081E391E00E943901C4E2B8
:10043000D3E2CE010197F1F763E081E391E00E94FE
:1004400039012197F1F763E081E391E00E943901DE
:1004500088E291E00197F1F762E081E391E00E9488
:1004600039018091400180620E94B90184E080934B
:1004700041018CE00E94B90181E00E94B9018CE940
:100480009FE00197F1F782E08093420186E0DF91DF
:10049000CF910C94B90180620E94B90184E293E289
:1004A0000197F1F78091400180620E94B90188E2D2
:1004B00091E00197F1F78091400180620E94B901BB
:1004C000D0CF41E00E94660181E090E008951F9244
:1004D0000F920FB60F9211242F933F938F939F93F8
:1004E000AF93BF9380912D0190912E01A0912F0188
:1004F000B091300130912C0126E0230F2D3758F5B3
:100500000296A11DB11D20932C0180932D01909383
:100510002E01A0932F01B09330018091280190917A
:100520002901A0912A01B0912B010196A11DB11DB5
:100530008093280190932901A0932A01B0932B0165
:10054000BF91AF919F918F913F912F910F900FBECF
:100550000F901F90189529E8230F0396A11DB11D38
:10056000D2CF789484B5826084BD84B5816084BD27
:1005700085B5826085BD85B5816085BD80916E0041
:10058000816080936E001092810080918100826072
:1005900080938100809181008160809381008091AF
:1005A00080008160809380008091B100846080939E
:1005B000B1008091B00081608093B00080917A009A
:1005C000846080937A0080917A00826080937A00C0
:1005D00080917A008E7F80937A0080917A00806883
:1005E00080937A001092C10082E00E94BF01E1E096
:1005F000809144018111E0E0E195F0E0EF5CFE4F75
:10060000848980680E94B9014EE050E06CE071E09E
:1006100081E391E00E94F200C0E0D0E0E09144016B
:10062000E230A8F4E150F0E0EF5CFE4F848980688E
:100630000E94B9014CE050E06BE171E081E391E090
:100640000E94F200209751F30E940000E7CFE1E002
:10065000EACFE1E3F1E01382128284E091E091833A
:10066000808387E084838FEF858386E0868382E0C2
:10067000878383E0808784E0818785E08287138693
:10068000148615861686178681E00C94BF01F894AF
:100690000C945003EE0FFF1F0590F491E02D099488
:0406A000F894FFCFFC
:1006A400000000006102F20020011F012048656C77
:1006B4006C6F2C20776F726C642100426F7574200C
:0806C4006E6F77202121210057
:00000001FF

View File

@@ -0,0 +1,13 @@
build-pro-8MHzatmega328/core/CDC.cpp.o: \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/CDC.cpp \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/USBAPI.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/binary.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/WCharacter.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/WString.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/HardwareSerial.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Stream.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Print.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Printable.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/variants/eightanaloginputs/pins_arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/variants/eightanaloginputs/../standard/pins_arduino.h

Binary file not shown.

View File

@@ -0,0 +1,15 @@
build-pro-8MHzatmega328/core/HardwareSerial.cpp.o: \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/HardwareSerial.cpp \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/binary.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/WCharacter.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/WString.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/HardwareSerial.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Stream.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Print.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Printable.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/USBAPI.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/variants/eightanaloginputs/pins_arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/variants/eightanaloginputs/../standard/pins_arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/HardwareSerial_private.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/wiring_private.h

View File

@@ -0,0 +1,15 @@
build-pro-8MHzatmega328/core/HardwareSerial0.cpp.o: \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/HardwareSerial0.cpp \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/binary.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/WCharacter.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/WString.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/HardwareSerial.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Stream.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Print.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Printable.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/USBAPI.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/variants/eightanaloginputs/pins_arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/variants/eightanaloginputs/../standard/pins_arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/HardwareSerial_private.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/wiring_private.h

View File

@@ -0,0 +1,15 @@
build-pro-8MHzatmega328/core/HardwareSerial1.cpp.o: \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/HardwareSerial1.cpp \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/binary.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/WCharacter.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/WString.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/HardwareSerial.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Stream.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Print.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Printable.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/USBAPI.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/variants/eightanaloginputs/pins_arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/variants/eightanaloginputs/../standard/pins_arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/HardwareSerial_private.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/wiring_private.h

View File

@@ -0,0 +1,15 @@
build-pro-8MHzatmega328/core/HardwareSerial2.cpp.o: \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/HardwareSerial2.cpp \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/binary.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/WCharacter.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/WString.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/HardwareSerial.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Stream.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Print.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Printable.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/USBAPI.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/variants/eightanaloginputs/pins_arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/variants/eightanaloginputs/../standard/pins_arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/HardwareSerial_private.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/wiring_private.h

View File

@@ -0,0 +1,15 @@
build-pro-8MHzatmega328/core/HardwareSerial3.cpp.o: \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/HardwareSerial3.cpp \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/binary.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/WCharacter.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/WString.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/HardwareSerial.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Stream.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Print.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Printable.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/USBAPI.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/variants/eightanaloginputs/pins_arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/variants/eightanaloginputs/../standard/pins_arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/HardwareSerial_private.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/wiring_private.h

View File

@@ -0,0 +1,15 @@
build-pro-8MHzatmega328/core/IPAddress.cpp.o: \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/IPAddress.cpp \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/binary.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/WCharacter.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/WString.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/HardwareSerial.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Stream.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Print.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Printable.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/USBAPI.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/variants/eightanaloginputs/pins_arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/variants/eightanaloginputs/../standard/pins_arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/IPAddress.h

View File

@@ -0,0 +1,14 @@
build-pro-8MHzatmega328/core/PluggableUSB.cpp.o: \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/PluggableUSB.cpp \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/USBAPI.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/binary.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/WCharacter.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/WString.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/HardwareSerial.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Stream.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Print.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Printable.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/variants/eightanaloginputs/pins_arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/variants/eightanaloginputs/../standard/pins_arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/PluggableUSB.h

View File

@@ -0,0 +1,13 @@
build-pro-8MHzatmega328/core/Print.cpp.o: \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Print.cpp \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/binary.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/WCharacter.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/WString.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/HardwareSerial.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Stream.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Print.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Printable.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/USBAPI.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/variants/eightanaloginputs/pins_arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/variants/eightanaloginputs/../standard/pins_arduino.h

Binary file not shown.

View File

@@ -0,0 +1,13 @@
build-pro-8MHzatmega328/core/Stream.cpp.o: \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Stream.cpp \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/binary.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/WCharacter.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/WString.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/HardwareSerial.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Stream.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Print.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Printable.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/USBAPI.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/variants/eightanaloginputs/pins_arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/variants/eightanaloginputs/../standard/pins_arduino.h

Binary file not shown.

View File

@@ -0,0 +1,13 @@
build-pro-8MHzatmega328/core/Tone.cpp.o: \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Tone.cpp \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/binary.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/WCharacter.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/WString.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/HardwareSerial.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Stream.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Print.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Printable.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/USBAPI.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/variants/eightanaloginputs/pins_arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/variants/eightanaloginputs/../standard/pins_arduino.h

Binary file not shown.

View File

@@ -0,0 +1,14 @@
build-pro-8MHzatmega328/core/USBCore.cpp.o: \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/USBCore.cpp \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/USBAPI.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/binary.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/WCharacter.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/WString.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/HardwareSerial.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Stream.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Print.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Printable.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/variants/eightanaloginputs/pins_arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/variants/eightanaloginputs/../standard/pins_arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/PluggableUSB.h

View File

@@ -0,0 +1,7 @@
build-pro-8MHzatmega328/core/WInterrupts.c.o: \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/WInterrupts.c \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/wiring_private.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/binary.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/variants/eightanaloginputs/pins_arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/variants/eightanaloginputs/../standard/pins_arduino.h

View File

@@ -0,0 +1,2 @@
build-pro-8MHzatmega328/core/WMath.cpp.o: \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/WMath.cpp

Binary file not shown.

View File

@@ -0,0 +1,3 @@
build-pro-8MHzatmega328/core/WString.cpp.o: \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/WString.cpp \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/WString.h

View File

@@ -0,0 +1,2 @@
build-pro-8MHzatmega328/core/abi.cpp.o: \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/abi.cpp

Binary file not shown.

View File

@@ -0,0 +1,2 @@
build-pro-8MHzatmega328/core/hooks.c.o: \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/hooks.c

Binary file not shown.

View File

@@ -0,0 +1,14 @@
build-pro-8MHzatmega328/core/main.cpp.o: \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/main.cpp \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/binary.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/WCharacter.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/WString.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/HardwareSerial.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Stream.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Print.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Printable.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/USBAPI.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/variants/eightanaloginputs/pins_arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/variants/eightanaloginputs/../standard/pins_arduino.h

Binary file not shown.

View File

@@ -0,0 +1,2 @@
build-pro-8MHzatmega328/core/new.cpp.o: \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/new.cpp

Binary file not shown.

View File

@@ -0,0 +1,7 @@
build-pro-8MHzatmega328/core/wiring.c.o: \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/wiring.c \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/wiring_private.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/binary.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/variants/eightanaloginputs/pins_arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/variants/eightanaloginputs/../standard/pins_arduino.h

Binary file not shown.

View File

@@ -0,0 +1,7 @@
build-pro-8MHzatmega328/core/wiring_analog.c.o: \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/wiring_analog.c \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/wiring_private.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/binary.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/variants/eightanaloginputs/pins_arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/variants/eightanaloginputs/../standard/pins_arduino.h

View File

@@ -0,0 +1,7 @@
build-pro-8MHzatmega328/core/wiring_digital.c.o: \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/wiring_digital.c \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/wiring_private.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/binary.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/variants/eightanaloginputs/pins_arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/variants/eightanaloginputs/../standard/pins_arduino.h

View File

@@ -0,0 +1,2 @@
build-pro-8MHzatmega328/core/wiring_pulse.S.o: \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/wiring_pulse.S

View File

@@ -0,0 +1,7 @@
build-pro-8MHzatmega328/core/wiring_pulse.c.o: \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/wiring_pulse.c \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/wiring_private.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/binary.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/variants/eightanaloginputs/pins_arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/variants/eightanaloginputs/../standard/pins_arduino.h

View File

@@ -0,0 +1,7 @@
build-pro-8MHzatmega328/core/wiring_shift.c.o: \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/wiring_shift.c \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/wiring_private.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/binary.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/variants/eightanaloginputs/pins_arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/variants/eightanaloginputs/../standard/pins_arduino.h

Binary file not shown.

View File

@@ -0,0 +1,16 @@
build-pro-8MHzatmega328/userlibs/LiquidCrystal/src/LiquidCrystal.cpp.o: \
/home/ricardo/Arduino/libraries/LiquidCrystal/src/LiquidCrystal.cpp \
/home/ricardo/Arduino/libraries/LiquidCrystal/src/LiquidCrystal.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Print.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/WString.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Printable.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/binary.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/WCharacter.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/HardwareSerial.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Stream.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Print.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/USBAPI.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/variants/eightanaloginputs/pins_arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/variants/eightanaloginputs/../standard/pins_arduino.h

View File

@@ -0,0 +1,15 @@
build-pro-8MHzatmega328/v01.ino.o: v01.ino \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/binary.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/WCharacter.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/WString.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/HardwareSerial.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Stream.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Print.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Printable.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/USBAPI.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/variants/eightanaloginputs/pins_arduino.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/variants/eightanaloginputs/../standard/pins_arduino.h \
/home/ricardo/Arduino/libraries/LiquidCrystal/src/LiquidCrystal.h \
/home/ricardo/Installs/arduino-1.8.11//hardware/arduino/avr/cores/arduino/Print.h

Binary file not shown.

View File

@@ -1,453 +1,65 @@
/*********************************************************************
NMM-1
NMEA0183 serial Monitor.
/*
LiquidCrystal Library - Hello World
By Jony Silva
Wed 24 Jan 23:11:25 GMT 2018
*********************************************************************/
Demonstrates the use a 16x2 LCD display. The LiquidCrystal
library works with all LCD displays that are compatible with the
Hitachi HD44780 driver. There are many of them out there, and you
can usually tell them by the 16-pin interface.
// Libraries to be included
#include <SPI.h>
#include <Wire.h>
#include <SoftwareSerial.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
This sketch prints "Hello World!" to the LCD
and shows the time.
#define OLED_RESET 8
#define SCREEN_WIDTH 128 // OLED display width, in pixels
#define SCREEN_HEIGHT 56 // OLED display height, in pixels
// create display object for oled display
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);
The circuit:
* LCD RS pin to digital pin 12
* LCD Enable pin to digital pin 11
* LCD D4 pin to digital pin 5
* LCD D5 pin to digital pin 4
* LCD D6 pin to digital pin 3
* LCD D7 pin to digital pin 2
* LCD R/W pin to ground
* LCD VSS pin to ground
* LCD VCC pin to 5V
* 10K resistor:
* ends to +5V and ground
* wiper to LCD VO pin (pin 3)
#define ON 0 // ON means pin is on GND
#define OFF 1 // OFF means pin is on VCC
Library originally added 18 Apr 2008
by David A. Mellis
library modified 5 Jul 2009
by Limor Fried (http://www.ladyada.net)
example added 9 Jul 2009
by Tom Igoe
modified 22 Nov 2010
by Tom Igoe
modified 7 Nov 2016
by Arturo Guadalupi
// Assign switches and led's to arduino pins
#define UP 2 // Switch 1 will be function UP connected to arduino PD 2
#define OK 3 // Switch 2 will be function OK connected to arduino pin 3
#define DOWN 4 // Switch 3 will be function DOWN connected to arduino pin 4
#define CANCEL 5 // Switch 4 will be function CANCEL connected to arduino pin 5
#define led1 9 // Led 1 connected to arduino pin 9
#define led2 10 // Led 2 connected to arduino pin 10
#define batt 17 // Battery plus connected to arduino pin 17
This example code is in the public domain.
// Macros to read the switchs
#define rUP digitalRead(UP) // Read button UP state
#define rOK digitalRead(OK) // Read button OK state
#define rDOWN digitalRead(DOWN) // Read button DOWN state
#define rCANCEL digitalRead(CANCEL) // Read button CANCEL state
http://www.arduino.cc/en/Tutorial/LiquidCrystalHelloWorld
*/
// Function declarations
void one(); // Menu one
void two(); // Menu two
void three(); // Menu three
void four(); // Menu four
void read_serial(); // Menu that reads the serial
void write_gps(); // Menu that writes gps out to serial
void write_hdg(); // Menu that writes hdg out to serial
void write_dep(); // Menu that writes dep out to serial
void batt_icon(); // Draws the battery icon acording to value
void write_serial(); // Menu that writes to serial
// include the library code:
#include <LiquidCrystal.h>
// initialize the library by associating any needed LCD interface pin
// with the arduino pin number it is connected to
const int rs = 7, en = 6, d4 = 2, d5 = 3, d6 = 4, d7 = 5;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
// Variables creation
int menuState = 1; // Integer with the number of the menu you are in
int prevMenu = 1; // Previous menu
int UP_state = OFF; // Holds state for UP, either ON or OFF
int OK_state = OFF; // Holds state for OK, either ON or OFF
int DOWN_state = OFF; // Holds state for DOWN, either ON or OFF
int CANCEL_state = OFF; // Holds state for CANCEL, either ON or OFF
int batt_val = 0; // Holds the value of battery voltage
int read_s = 0; // Serial flag, if 0 not reading, if 1 is reading
// Create SoftwareSerial object and designate pins
SoftwareSerial mySerial(6, 7); // RX, TX
void setup() { // BEGIN SETUP ------------------------------------
pinMode(led1, OUTPUT); // Led 1 is an output
pinMode(led2, OUTPUT); // Led 2 is an output
pinMode(UP, INPUT); // Switch 1 is an input
pinMode(OK, INPUT); // Switch 2 is an input
pinMode(DOWN, INPUT); // Switch 3 is an input
pinMode(CANCEL, INPUT); // Switch 4 is an input
// Define the starting state of the led's
digitalWrite(led1,HIGH); // Turn off led 1
digitalWrite(led2,HIGH); // Turn off led 2
// set the data rate for the Serial port
Serial.begin(4800);
// by default, we'll generate the high voltage from the 3.3v line internally! (neat!)
display.begin(SSD1306_SWITCHCAPVCC, 0x3C); // initialize with the I2C addr 0x3C (for the 128x32)
// init done
// initialize timer1 ---------------------------------------
noInterrupts(); // disable all interrupts
TCCR1A = 0;
TCCR1B = 0;
TCNT1 = 0;
OCR1A = 9000; // Load value to compare
TCCR1B |= (1 << WGM12); // CTC mode
TCCR1B |= (1 << CS10); // 64 prescaler
TCCR1B |= (1 << CS11); //
TIMSK1 |= (1 << OCIE1A); // enable timer compare interrupt
interrupts(); // enable all interrupts
// ----------------------------------------------------------
// Clear the buffer.
display.clearDisplay(); // Clean display
display.display(); // Refresh display
display.setTextSize(2); // Set text size on the display
display.setTextColor(WHITE); // Set text color on the display
display.setCursor(36,18); // Set the display cursor to position
display.println("NMM-1"); // Print on display
display.display(); // Refresh display
delay(3000);
display.clearDisplay(); // Clean display
display.display(); // Refresh display
} // END SETUP --------------------------------------------------------------------
// Timer compare interrupt service routine --------------------------
ISR(TIMER1_COMPA_vect)
{
if (!rUP) // If button UP pressed
{
if (menuState == 1){} // Do nothing and leave menuState
// as it is (1)
else {
menuState--;
}
while (!rUP); // Check if button is still pressed, do nothing
void setup() {
// set up the LCD's number of columns and rows:
lcd.begin(16, 2);
// Print a message to the LCD.
lcd.setCursor(0, 0);
lcd.print(" Hello, world!");
}
if (!rDOWN) // If button DOWN pressed
{
if (menuState == 4){} // Do nothing and leave menuState
// as it is (4)
else {
menuState++;
}
while (!rDOWN); // Check if button is still pressed, do nothing
}
if (!rOK) // If button OK pressed
{
if (menuState == 1) // and the menuState is 1
{
prevMenu = menuState; // set prevMenu to 1
menuState = 10; // then reset menuState to 10
}
else if (menuState == 2) // If menuState is 2
{
prevMenu = menuState; // set prevMenu to 2
menuState = 11; // then reset menuState to 11
}
else if (menuState == 3) // If menuState is 3
{
prevMenu = menuState; // set prevMenu to 3
menuState = 12; // then reset menuState to 12
}
else if (menuState == 4) // If menuState is 4
{
prevMenu = menuState; // set prevMenu to 4
menuState = 13; // then reset menuState to 13
}
while (!rOK); // Check if button is still pressed, do nothing
}
if (!rCANCEL) // If button CANCEL pressed
{
menuState = prevMenu; // set menuState to same value as prevMenu
while (!rCANCEL); // Check if button is still pressed, do nothing
}
}
// End of Timer compare interrupt ---------------------------------------
// Main loop routine -----------------------------------------
void loop()
{
batt_val = analogRead(batt); // Read analog value from battery into batt_val
if (menuState == 1) // If menuState is 1
{
one(); // call function one()
mySerial.end(); // close serial connection
read_s = 0; // and set read_s to 0
}
else if (menuState == 2) // If menuState is 2
{
two(); // call function two()
mySerial.end(); // close serial connection
read_s = 0; // and set read_s to 0
}
else if (menuState == 3) // If menuState is 3
{
three(); // call function three()
mySerial.end(); // close serial connection
read_s = 0; // and set read_s to 0
}
else if (menuState == 4) // If menuState is 4
{
four(); // call function four()
mySerial.end(); // close serial connection
read_s = 0; // and set read_s to 0
}
else if (menuState == 10) // If menuState is 10
{
if (read_s == 0) // and read_s is 0
{
mySerial.begin(4800); // Start serial with 4800bps
read_s = 1; // set read_s to 1
display.clearDisplay(); // Clean display
display.setTextSize(1); // Set text size on the display
display.setTextColor(WHITE); // Set text color on the display
display.setCursor(1,17); // Set the display cursor to position
display.println("Sending GPS....."); // Print on display
batt_icon(); // call function batt_icon()
display.display(); // Refresh display
}
write_gps(); // call function write_gps()
}
else if (menuState == 11) // If menuState is 11
{
if (read_s == 0) // and read_s is 0
{
mySerial.begin(4800); // Start serial with 4800bps
read_s = 1; // set read_s to 1
display.clearDisplay(); // Clean display
display.setTextSize(1); // Set text size on the display
display.setTextColor(WHITE); // Set text color on the display
display.setCursor(1,17); // Set the display cursor to position
display.println("Sending Heading....."); // Print on display
batt_icon(); // call function batt_icon()
display.display(); // Refresh display
}
write_hdg(); // call function write_hdg()
}
else if (menuState == 12) // If menuState is 12
{
if (read_s == 0) // and read_s is 0
{
mySerial.begin(4800); // Start serial with 4800bps
read_s = 1; // set read_s to 1
display.clearDisplay(); // Clean display
display.setTextSize(1); // Set text size on the display
display.setTextColor(WHITE); // Set text color on the display
display.setCursor(1,17); // Set the display cursor to position
display.println("Sending Depth....."); // Print on display
batt_icon(); // call function batt_icon()
display.display(); // Refresh display
}
write_dep(); // call function write_dep()
}
else if (menuState == 13) // If menuState is 13
{
if (read_s == 0) // and read_s is 0
{
mySerial.begin(4800); // Start serial with 4800bps
read_s = 1; // set read_s to 1
display.clearDisplay(); // Clean display
display.setTextSize(1); // Set text size on the display
display.setTextColor(WHITE); // Set text color on the display
display.setCursor(1,17); // Set the display cursor to position
display.println("RS-422 to USB"); // Print on display
display.println("Sending..."); // Print on display
batt_icon(); // call function batt_icon()
display.display(); // Refresh display
}
read_serial(); // call function read_serial()
}
else // otherwise
{
one(); // call function one()
mySerial.end(); // close serial connection
read_s = 0; // set read_s to 0
}
}
// END of Main loop routine -----------------------------------------
void batt_icon (void)
{
if (batt_val > 962) // If analog value is bigger then 962
{
// Draw the battery icon - Full battery
display.drawRect(111, 1, 16, 6, WHITE); // Draw white reactangle with coordinates
display.drawRect(112, 2, 14, 4, WHITE);
display.drawRect(113, 3, 12, 2, WHITE);
display.drawPixel(110, 3, WHITE); // Draw white dot with coordinates
display.drawPixel(110, 4, WHITE);
display.drawPixel(109, 3, WHITE);
display.drawPixel(109, 4, WHITE);
display.drawPixel(108, 3, WHITE);
display.drawPixel(108, 4, WHITE);
}
else if ((batt_val > 901) & (batt_val < 962)) // If analog value is between 901 and 962
{
// Draw the battery icon - 2/3 battery
display.drawRect(111, 1, 16, 6, WHITE); // Draw white reactangle with coordinates
display.drawRect(116, 2, 10, 4, WHITE);
display.drawRect(117, 3, 8, 2, WHITE);
display.drawPixel(110, 3, WHITE); // Draw white dot with coordinates
display.drawPixel(110, 4, WHITE);
display.drawPixel(109, 3, WHITE);
display.drawPixel(109, 4, WHITE);
display.drawPixel(108, 3, WHITE);
display.drawPixel(108, 4, WHITE);
}
else if ((batt_val > 840) & (batt_val < 901)) // If analog value is between 840 and 901
{
// Draw the battery icon - 1/3 battery
display.drawRect(111, 1, 16, 6, WHITE); // Draw white reactangle with coordinates
display.drawRect(121, 2, 5, 4, WHITE);
display.drawRect(122, 3, 3, 2, WHITE);
display.drawPixel(110, 3, WHITE); // Draw white dot with coordinates
display.drawPixel(110, 4, WHITE);
display.drawPixel(109, 3, WHITE);
display.drawPixel(109, 4, WHITE);
display.drawPixel(108, 3, WHITE);
display.drawPixel(108, 4, WHITE);
}
else // otherwise
{
// Draw the battery icon - Empty battery
display.setCursor(35,1); // Set the display cursor to position
display.println("BATT LOW"); // Print on display
display.drawRect(111, 1, 16, 6, WHITE); // Draw white reactangle with coordinates
display.drawPixel(110, 3, WHITE); // Draw white dot with coordinates
display.drawPixel(110, 4, WHITE);
display.drawPixel(109, 3, WHITE);
display.drawPixel(109, 4, WHITE);
display.drawPixel(108, 3, WHITE);
display.drawPixel(108, 4, WHITE);
}
}
void one (void)
{
display.clearDisplay(); // Clean display
display.setTextSize(1); // Set text size on the display
display.setTextColor(WHITE); // Set text color on the display
display.setCursor(1,18); // Set the display cursor to position
display.println("Send GPS <--"); // Print on display
display.setCursor(1,28); // Set the display cursor to position
display.println("Send Heading"); // Print on display
display.setCursor(1,38); // Set the display cursor to position
display.println("Send Depth"); // Print on display
display.setCursor(1,48); // Set the display cursor to position
display.println("RS422 <==> USB"); // Print on display
batt_icon(); // call function batt_icon()
display.display(); // Refresh display
}
void two (void)
{
display.clearDisplay(); // Clean display
display.setTextSize(1); // Set text size on the display
display.setTextColor(WHITE); // Set text color on the display
display.setCursor(1,18); // Set the display cursor to position
display.println("Send GPS"); // Print on display
display.setCursor(1,28); // Set the display cursor to position
display.println("Send Heading <--"); // Print on display
display.setCursor(1,38); // Set the display cursor to position
display.println("Send Depth"); // Print on display
display.setCursor(1,48); // Set the display cursor to position
display.println("RS422 <==> USB"); // Print on display
batt_icon(); // call function batt_icon()
display.display(); // Refresh display
}
void three (void)
{
display.clearDisplay(); // Clean display
display.setTextSize(1); // Set text size on the display
display.setTextColor(WHITE); // Set text color on the display
display.setCursor(1,18); // Set the display cursor to position
display.println("Send GPS"); // Print on display
display.setCursor(1,28); // Set the display cursor to position
display.println("Send Heading"); // Print on display
display.setCursor(1,38); // Set the display cursor to position
display.println("Send Depth <--"); // Print on display
display.setCursor(1,48); // Set the display cursor to position
display.println("RS422 <==> USB"); // Print on display
batt_icon(); // call function batt_icon()
display.display(); // Refresh display
}
void four (void)
{
display.clearDisplay(); // Clean display
display.setTextSize(1); // Set text size on the display
display.setTextColor(WHITE); // Set text color on the display
display.setCursor(1,18); // Set the display cursor to position
display.println("Send GPS"); // Print on display
display.setCursor(1,28); // Set the display cursor to position
display.println("Send Heading"); // Print on display
display.setCursor(1,38); // Set the display cursor to position
display.println("Send Depth"); // Print on display
display.setCursor(1,48); // Set the display cursor to position
display.println("RS422 <==> USB <--"); // Print on display
batt_icon(); // call function batt_icon()
display.display(); // Refresh display
}
void read_serial (void)
{
if (mySerial.available()) // If incoming NMEA0183 serial
{
Serial.write(mySerial.read()); // redirect it to USB
}
if (Serial.available()) // If incoming USB serial
{
mySerial.write(Serial.read()); // redirect it to NMEA0183 serial
}
}
void write_gps (void)
{
// Write NMEA0183 GPS sentence to USB
mySerial.print("$GPGGA,090000.10,6350.37829338,N,02225.18272240,W,1,05,2.87,160.00,M,-21.3213,M,,*64");
mySerial.println(); // Send string to NMEA0183 serial
delay(100);
}
void write_hdg (void)
{
// Write NMEA0183 Heading sentence to USB
mySerial.print("$HEHDT,268.4,T*27");
mySerial.println(); // Send string to NMEA0183 serial
delay(100);
}
void write_dep (void)
{
// Write NMEA0183 Depth sentence to USB
mySerial.print("$SDDBT,0038.0,f,0011.6,M,0006.3,F");
mySerial.println(); // Send string to NMEA0183 serial
delay(100);
void loop() {
// set the cursor to column 0, line 1
// (note: line 1 is the second row, since counting begins with 0):
lcd.setCursor(0, 1);
// print the number of seconds since reset:
lcd.print("Bout now !!!");
}

View File

@@ -1,6 +1,25 @@
EESchema-LIBRARY Version 2.4
#encoding utf-8
#
# AC-DC_Module_5V-electropepper_kicad
#
DEF AC-DC_Module_5V-electropepper_kicad U 0 40 Y Y 1 F N
F0 "U" -250 250 50 H V C CNN
F1 "AC-DC_Module_5V-electropepper_kicad" 0 -200 39 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
AC-DC_Module_5V
$ENDFPLIST
DRAW
S -300 200 300 -150 0 1 0 f
X AC1 1 -450 100 150 R 50 50 1 1 W
X AC2 2 -450 -50 150 R 50 50 1 1 W
X DC+ 3 450 100 150 L 50 50 1 1 w
X DC- 4 450 -50 150 L 50 50 1 1 w
ENDDRAW
ENDDEF
#
# ATMEGA328P-AU
#
DEF ATMEGA328P-AU U 0 40 Y Y 1 F N
@@ -144,28 +163,51 @@ ENDDEF
# DS3231MZ+-electropepper_kicad
#
DEF DS3231MZ+-electropepper_kicad U 0 40 Y Y 1 F N
F0 "U" -300 450 50 H V L BNN
F0 "U" -250 350 50 H V L BNN
F1 "DS3231MZ+-electropepper_kicad" -50 -400 50 H V L BNN
F2 "SOIC8_150MIL" 0 -300 50 H I L BNN
F3 "Maxim Integrated" 0 -300 50 H I L BNN
F4 "DS3231MZ+" 0 -300 50 H I L BNN
F5 "5.10 USD" 0 -300 50 H I L BNN
F6 "Good" 0 -300 50 H I L BNN
F7 "SOIC-8 Maxim Integrated" 0 -300 50 H I L BNN
F8 "Real Time Clock Serial-I2C +/-5ppm SOIC8" 0 -300 50 H I L BNN
F2 "SOIC8_150MIL" 0 -350 50 H I L BNN
F3 "Maxim Integrated" 0 -350 50 H I L BNN
F4 "DS3231MZ+" 0 -350 50 H I L BNN
F5 "5.10 USD" 0 -350 50 H I L BNN
F6 "Good" 0 -350 50 H I L BNN
F7 "SOIC-8 Maxim Integrated" 0 -350 50 H I L BNN
F8 "Real Time Clock Serial-I2C +/-5ppm SOIC8" 0 -350 50 H I L BNN
$FPLIST
SOIC-8
$ENDFPLIST
DRAW
S -300 400 300 -300 0 0 0 f
X 32KHZ 1 450 300 150 L 40 40 0 0 O
X VCC 2 -450 300 150 R 40 40 0 0 W
X ~INT/SQW 3 450 100 150 L 40 40 0 0 O
X ~RST 4 -450 -100 150 R 40 40 0 0 B
S -300 300 300 -300 0 0 0 f
X 32KHZ 1 450 200 150 L 40 40 0 0 O
X VCC 2 -450 200 150 R 40 40 0 0 W
X ~INT/SQW 3 450 0 150 L 40 40 0 0 O
X ~RST 4 450 100 150 L 40 40 0 0 B
X GND 5 -450 -200 150 R 40 40 0 0 P
X VBAT 6 -450 200 150 R 40 40 0 0 W
X SDA 7 450 200 150 L 40 40 0 0 B
X SCL 8 -450 0 150 R 40 40 0 0 I
X VBAT 6 450 -150 150 L 40 40 0 0 W
X SDA 7 -450 -50 150 R 40 40 0 0 B
X SCL 8 -450 50 150 R 40 40 0 0 I
ENDDRAW
ENDDEF
#
# ESP-01-electropepper_kicad
#
DEF ESP-01-electropepper_kicad U 0 40 Y Y 1 F N
F0 "U" -300 300 50 H V C CNN
F1 "ESP-01-electropepper_kicad" 200 -300 50 H V C CNN
F2 "" -850 0 50 H I C CNN
F3 "" -850 0 50 H I C CNN
$FPLIST
Pin_Header_Straight_2x04_Pitch2.54mm
$ENDFPLIST
DRAW
S -350 250 350 -250 0 1 0 f
X TX 1 -500 150 150 R 50 50 1 1 O
X GND 2 0 -400 150 U 50 50 1 1 B
X CH_PD 3 500 -150 150 L 50 50 1 1 B
X GPIO2 4 500 50 150 L 50 50 1 1 B
X RST 5 -500 -150 150 R 50 50 1 1 B
X GPIO0 6 500 150 150 L 50 50 1 1 B
X VCC 7 0 400 150 D 50 50 1 1 B
X RX 8 -500 50 150 R 50 50 1 1 I
ENDDRAW
ENDDEF
#
@@ -231,6 +273,32 @@ X ~ 3 300 0 100 L 50 50 1 1 P
ENDDRAW
ENDDEF
#
# LCD16X2-4Bit-electropepper_kicad
#
DEF LCD16X2-4Bit-electropepper_kicad DS 0 40 Y Y 1 F N
F0 "DS" -600 400 50 H V C CNN
F1 "LCD16X2-4Bit-electropepper_kicad" 350 400 50 H V C CNN
F2 "WC1602A" -25 -50 50 H V C CIN
F3 "" 200 0 50 H V C CNN
DRAW
T 0 -25 100 80 0 0 0 16x2 Normal 1 C C
S -650 350 625 -350 0 1 0 f
S -550 250 525 -100 0 1 20 N
X VSS 1 -550 -500 150 U 40 40 1 1 W
X D7 10 350 -500 150 U 40 40 1 1 I
X LED+ 11 450 -500 150 U 40 40 1 1 P
X LED- 12 550 -500 150 U 40 40 1 1 P
X VDD 2 -450 -500 150 U 40 40 1 1 W
X VO 3 -350 -500 150 U 40 40 1 1 I
X RS 4 -250 -500 150 U 40 40 1 1 I
X R/W 5 -150 -500 150 U 40 40 1 1 I
X E 6 -50 -500 150 U 40 40 1 1 I
X D4 7 50 -500 150 U 40 40 1 1 I
X D5 8 150 -500 150 U 40 40 1 1 I
X D6 9 250 -500 150 U 40 40 1 1 I
ENDDRAW
ENDDEF
#
# LED
#
DEF LED D 0 40 Y N 1 F N
@@ -252,6 +320,29 @@ X A 2 150 0 100 L 50 50 1 1 P
ENDDRAW
ENDDEF
#
# MIC4680BM-electropepper_kicad
#
DEF MIC4680BM-electropepper_kicad U 0 40 Y Y 1 F N
F0 "U" -350 350 50 H V C CNN
F1 "MIC4680BM-electropepper_kicad" 350 -350 50 H V C CNN
F2 "" 0 0 60 H I C CNN
F3 "" 0 0 60 H I C CNN
$FPLIST
SOIC-8
$ENDFPLIST
DRAW
S 400 -300 -400 300 0 1 0 f
X SHDN 1 -550 -100 150 R 40 40 1 1 I
X IN 2 -550 150 150 R 40 40 1 1 W
X SW 3 550 150 150 L 40 40 1 1 w
X FB 4 550 -100 150 L 40 40 1 1 I
X GND 5 -150 -450 150 U 40 40 1 1 B
X GND 6 -50 -450 150 U 40 40 1 1 B
X GND 7 50 -450 150 U 40 40 1 1 B
X GND 8 150 -450 150 U 40 40 1 1 B
ENDDRAW
ENDDEF
#
# POT
#
DEF POT RV 0 40 N N 1 F N
@@ -290,4 +381,30 @@ X ~ 2 0 -150 50 U 50 50 1 1 P
ENDDRAW
ENDDEF
#
# USB_OTG-Electropepper-electropepper_kicad
#
DEF USB_OTG-Electropepper-electropepper_kicad P 0 40 Y Y 1 F N
F0 "P" 325 -125 50 H V C CNN
F1 "USB_OTG-Electropepper-electropepper_kicad" 0 200 50 H V C CNN
F2 "" -50 -100 50 V V C CNN
F3 "" -50 -100 50 V V C CNN
$FPLIST
USB*
$ENDFPLIST
DRAW
S -250 -150 250 150 0 1 0 f
S -205 -150 -195 -120 0 1 0 N
S -105 -150 -95 -120 0 1 0 N
S -5 -150 5 -120 0 1 0 N
S 95 -150 105 -120 0 1 0 N
S 195 -150 205 -120 0 1 0 N
X VBUS 1 -200 -300 150 U 50 50 1 1 w
X D- 2 -100 -300 150 U 50 50 1 1 P
X D+ 3 0 -300 150 U 50 50 1 1 P
X ID 4 100 -300 150 U 50 50 1 1 W
X GND 5 200 -300 150 U 50 50 1 1 W
X shield 6 400 100 150 L 50 50 1 1 P
ENDDRAW
ENDDEF
#
#End Library