-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simuino: pull source from project's homepage
Download the source from: https://3d7dc8ee-a-62cb3a1a-s-sites.googlegroups.com/site/adcajo/downloads/simuino_v019.zip and push to the git repository.
- Loading branch information
Showing
42 changed files
with
14,134 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
sketchbook/blink.ino | ||
sketchbook/helloWorld_MEGA.ino | ||
sketchbook/helloWorld_UNO.ino |
Empty file.
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,13 @@ | ||
|
||
SIMUINO Arduino Simulator | ||
Copyright (C) 2013 Benny Saxen | ||
This program comes with ABSOLUTELY NO WARRANTY. | ||
This is free software. You are welcome to redistribute | ||
it, as long it is named Simuino. | ||
|
||
Type "help" for list of commands. | ||
|
||
Place your sketch (.ino) in folder sketchbook. | ||
Add configuration information. (See helloWorld_UNO.ino) | ||
|
||
Visit: www.simuino.com for more information. |
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,41 @@ | ||
[Run Mode] | ||
Goto: | ||
arrow up step forward | ||
arrow down step backward | ||
arrow right loop forward | ||
arrow left loop backward | ||
|
||
f step forward | ||
b step backward | ||
r loop forward | ||
p loop backward | ||
|
||
o loop reset | ||
a goto first step | ||
z goto last step | ||
t step to next analogRead/digitalRead | ||
|
||
Animation(realtime time delay): | ||
R loop forward | ||
P loop backward | ||
G step through scenario | ||
|
||
Scenario breakpoints: | ||
c view configuration parameters | ||
y view Scenario Breakpoints | ||
x expanded view of Scenario Breakpoints | ||
v set value analogRead/digitalRead | ||
Current step must be one step before Read | ||
Use 't' to step between Read events. | ||
|
||
Window: | ||
w toggles window layout mode. | ||
|
||
Information: | ||
d show scenario delay overview | ||
l show loop information | ||
s show debug sketch | ||
e show runtime error log | ||
------------------------------------ | ||
q quit Run Mode, enter Admin Mode. | ||
h show this information |
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 @@ | ||
exit Exit Simuino | ||
|
||
load Load selected sketch | ||
|
||
list List available sketches (max 100). | ||
Selected is marked with '>' | ||
|
||
<n> Select sketch according to number in list | ||
|
||
run Enter Run Mode | ||
|
||
info <par> Show info about <par> | ||
- scen Show scenario data | ||
- conf Display configuration | ||
- loop Show loop information | ||
- error Show Servuino errors | ||
- g++ Show compilation errors | ||
|
||
sketch Show selected sketch | ||
|
||
help Show this information |
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,43 @@ | ||
// EEPROM | ||
class eeprom { | ||
|
||
public: | ||
int read(int address); | ||
void write(int address, int value); | ||
|
||
// Wrappers for debug functionality | ||
int readX(int z,int address); | ||
void writeX(int z,int address, int value); | ||
}; | ||
eeprom EEPROM; | ||
|
||
int eepromStorage[1000]; // 0 - 511 allowed | ||
int value = 998; | ||
|
||
int eeprom::read(int address) | ||
{ | ||
|
||
if(address > 0 && address < 512)value = eepromStorage[address]; | ||
servuinoFunc(S_EEPROM_READ,address,value,NULL,0); | ||
return(value); | ||
} | ||
void eeprom::write(int address, int value) | ||
{ | ||
if(address > 0 && address < 512 && value >= 0 && value < 256)eepromStorage[address] = value; | ||
servuinoFunc(S_EEPROM_WRITE,address,value,NULL,0); | ||
return; | ||
} | ||
|
||
int eeprom::readX(int z,int address) | ||
{ | ||
ino(z); | ||
return(read(address)); | ||
} | ||
void eeprom::writeX(int z,int address, int value) | ||
{ | ||
ino(z); | ||
write(address,value); | ||
return; | ||
} | ||
|
||
|
Oops, something went wrong.