-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathazip.ino
51 lines (35 loc) · 901 Bytes
/
azip.ino
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/* Azip Arduino Zcode Interpreter Program
* --------------------------------------------------------------------
* Derived from John D. Holder's Jzip V2.1 source code
* http://jzip.sourceforge.net/
* --------------------------------------------------------------------
*/
/*
* Created by Louis Davis April, 2012
*
*/
#include <SdFat.h>
#include <SdFatUtil.h>
#include "ztypes.h"
// SD chip select pin
const uint8_t chipSelect = 4;
// file system
SdFat sd;
void setup()
{
Serial.begin(9600);
Serial.println("Enter any key to start...");
while (!Serial.available()) {}
Serial.read();
if (!sd.init(SPI_FULL_SPEED, chipSelect)) sd.initErrorHalt();
open_story( );
// put your setup code here, to run once:
configure( V1, V8 );
initialize_screen( );
z_restart( );
}
void loop()
{
// put your main code here, to run repeatedly:
interpret( );
}