-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from oroca/develop
배터리/리모콘 시험 코드 추가
- Loading branch information
Showing
4 changed files
with
58 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#include <EduBot.h> | ||
|
||
|
||
|
||
void battery_setup() { | ||
// put your setup code here, to run once: | ||
|
||
edubot.begin(115200); | ||
} | ||
|
||
void battery_loop() { | ||
// put your main code here, to run repeatedly | ||
float vol; | ||
|
||
edubot.lcd.clearDisplay(); | ||
edubot.lcd.printf(0, 0, "Battery Voltage"); | ||
vol = edubot.batteryGetVoltage(); | ||
edubot.lcd.printf(0, 16,"%1.1f V", vol/10); | ||
edubot.lcd.display(); | ||
delay(100); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#include <EduBot.h> | ||
|
||
|
||
|
||
void irremote_setup() { | ||
// put your setup code here, to run once: | ||
|
||
edubot.begin(115200); | ||
edubot.tofEnd(); | ||
} | ||
|
||
void irremote_loop() { | ||
// put your main code here, to run repeatedly | ||
|
||
if (edubot.ir_remote.available() > 0) | ||
{ | ||
uint32_t key_code; | ||
|
||
key_code = edubot.ir_remote.read(); | ||
|
||
Serial.print("Key : 0x"); | ||
Serial.print(key_code, HEX); | ||
Serial.print(" "); | ||
Serial.println(edubot.ir_remote.getTime()); | ||
edubot.lcd.clearDisplay(); | ||
edubot.lcd.printf(0, 0, "KeyCode"); | ||
edubot.lcd.printf(0, 16,"0x%X", key_code); | ||
edubot.lcd.display(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name=OROCA-EduBot | ||
version=0.0.9 | ||
version=0.1.0 | ||
author=OROCA | ||
license=Apache-2.0 | ||
maintainer=Baram([email protected]) | ||
|