-
Notifications
You must be signed in to change notification settings - Fork 4
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 #11 from ElectronicCats/dev
Player & OBD2 functionalities added
- Loading branch information
Showing
23 changed files
with
2,579 additions
and
128 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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
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,48 @@ | ||
#include "../app_user.h" | ||
|
||
// Draws a developmet | ||
void draw_in_development(App* app) { | ||
widget_reset(app->widget); | ||
|
||
widget_add_string_element( | ||
app->widget, 65, 20, AlignCenter, AlignBottom, FontPrimary, "SCENE IN"); | ||
|
||
widget_add_string_element( | ||
app->widget, 65, 35, AlignCenter, AlignBottom, FontPrimary, "DEVELOPMENT"); | ||
} | ||
|
||
// Draws device not connected | ||
void draw_device_no_connected(App* app) { | ||
widget_reset(app->widget); | ||
|
||
widget_add_string_element( | ||
app->widget, 65, 20, AlignCenter, AlignBottom, FontPrimary, "DEVICE NOT"); | ||
|
||
widget_add_string_element( | ||
app->widget, 65, 35, AlignCenter, AlignBottom, FontPrimary, "CONNECTED"); | ||
} | ||
|
||
// draw when a message is not recognized | ||
void draw_transmition_failure(App* app) { | ||
widget_reset(app->widget); | ||
|
||
widget_add_string_element( | ||
app->widget, 65, 20, AlignCenter, AlignBottom, FontPrimary, "TRANSMITION"); | ||
|
||
widget_add_string_element( | ||
app->widget, 65, 35, AlignCenter, AlignBottom, FontPrimary, "FAILURE"); | ||
} | ||
|
||
// draw when a message is send OK | ||
void draw_send_wrong(App* app) { | ||
widget_reset(app->widget); | ||
widget_add_string_element( | ||
app->widget, 65, 20, AlignCenter, AlignCenter, FontPrimary, "MESSAGE SEND ERROR"); | ||
} | ||
|
||
// draw when a message is send ok | ||
void draw_send_ok(App* app) { | ||
widget_reset(app->widget); | ||
widget_add_string_element( | ||
app->widget, 65, 20, AlignCenter, AlignCenter, FontPrimary, "MESSAGE SEND OK"); | ||
} |
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
Oops, something went wrong.