Skip to content

Commit

Permalink
simuino: pull source from project's homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
smihir committed Oct 28, 2014
1 parent 32bf8d9 commit b32772e
Show file tree
Hide file tree
Showing 42 changed files with 14,134 additions and 0 deletions.
3 changes: 3 additions & 0 deletions conf_list.txt
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 added copy.error
Empty file.
Empty file added error.txt
Empty file.
13 changes: 13 additions & 0 deletions gpl.txt
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.
41 changes: 41 additions & 0 deletions help.txt
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
21 changes: 21 additions & 0 deletions help_command.txt
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
Empty file added hints.txt
Empty file.
43 changes: 43 additions & 0 deletions servuino/EEPROM.h
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;
}


Loading

0 comments on commit b32772e

Please sign in to comment.