init
This commit is contained in:
22
src/main.c
Normal file
22
src/main.c
Normal file
@@ -0,0 +1,22 @@
|
||||
#include "states/state.h"
|
||||
#include "device.h"
|
||||
|
||||
int main() {
|
||||
Device_t device;
|
||||
initDevice(&device);
|
||||
// sets the device to off on start up
|
||||
setOffState(&device);
|
||||
|
||||
// turn on the device
|
||||
device.methods.pressPwr(&device);
|
||||
|
||||
// send the current string
|
||||
device.methods.pressStrInput(&device);
|
||||
|
||||
// send in the right string
|
||||
device.entered_string = "pwd";
|
||||
device.methods.pressStrInput(&device);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user