Fixed formatting in some of the examples

This commit is contained in:
Kristian Sloth Lauszus 2016-01-19 16:58:31 +01:00
parent a0d163b8fb
commit b946a41576
8 changed files with 98 additions and 98 deletions

View file

@ -73,7 +73,7 @@ void setup()
next_time = millis() + 5000;
HidMouse.SetReportParser(0,(HIDReportParser*)&Prs);
HidMouse.SetReportParser(0, (HIDReportParser*)&Prs);
}
void loop()

View file

@ -35,7 +35,7 @@ void setup()
LCD.begin(16, 2);
LCD.clear();
LCD.home();
LCD.setCursor(0,0);
LCD.setCursor(0, 0);
LCD.write('R');
delay( 200 );

View file

@ -16,7 +16,7 @@ USBHub Hub1(&usb);
USBHub Hub2(&usb);
HIDBoot<USB_HID_PROTOCOL_KEYBOARD> HidKeyboard(&usb);
ADK adk(&usb,"Circuits@Home, ltd.",
ADK adk(&usb, "Circuits@Home, ltd.",
"USBHost Host Shield",
"Arduino Terminal for Android",
"1.0",
@ -28,7 +28,7 @@ class KbdRptParser : public KeyboardReportParser
{
protected:
void OnKeyDown (uint8_t mod, uint8_t key);
void OnKeyDown(uint8_t mod, uint8_t key);
void OnKeyPressed(uint8_t key);
};
@ -43,17 +43,17 @@ void KbdRptParser::OnKeyDown(uint8_t mod, uint8_t key)
/* what to do when symbol arrives */
void KbdRptParser::OnKeyPressed(uint8_t key)
{
const char* new_line = "\n";
uint8_t rcode;
uint8_t keylcl;
const char* new_line = "\n";
uint8_t rcode;
uint8_t keylcl;
if( adk.isReady() == false ) {
if ( adk.isReady() == false ) {
return;
}
keylcl = key;
if( keylcl == 0x13 ) {
if ( keylcl == 0x13 ) {
rcode = adk.SndData( strlen( new_line ), (uint8_t *)new_line );
}
else {
@ -77,7 +77,7 @@ void setup()
if (usb.Init() == -1) {
Serial.println("OSCOKIRQ failed to assert");
while(1); //halt
while (1); //halt
}//if (usb.Init() == -1...
HidKeyboard.SetReportParser(0, (HIDReportParser*)&Prs);