Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 1 addition & 19 deletions Examples/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ void button() {
// handle button down here
}

void step() {
// discrete time logic here
}

```

###AutomaTile methods###
Expand All @@ -30,13 +26,6 @@ void step() {
void getNeighborStates(uint8_t * result);
// pass it an array for the size of the neighborhood and it will return each neighbor’s state in that array.
```
**sendStep**
```c
void sendStep(void);
// step forward in time, simulate ruleset
// maximum frequency 10Hz
// these do not cue up, i.e. if you send step more frequently, steps will be dropped
```
**getTimer**
```c
uint32_t getTimer(void);
Expand All @@ -59,13 +48,6 @@ void setState(uint8_t state);
uint8_t getState(void);
// get’s our own current state, 0-15
```
**setStepCallback**
```c
void setStepCallback(cb_func cb);
// pass your own function to setStepCallback, this function takes no arguments and returns nothing
// can be set once in the beginning of your application, but can also be hot-swapped during runtime
// defaults to do nothing (change this to default to flash red… or white)
```
**setButtonCallback**
```c
void setButtonCallback(cb_func cb);
Expand Down Expand Up @@ -117,4 +99,4 @@ void setMicOn(void);
```c
void setMicOff(void);
// turns the microphone off (i.e. only steps forward from neighbor notification)
```
```