Write Arduino-style sketches for VIC-20 and Commodore 64.
This example summarizes the Arduino-style API implemented so far:
void setup(void)
{
pinMode(LED_BUILTIN, OUTPUT);
}
void loop(void)
{
digitalWrite(LED_BUILTIN, HIGH);
delay(1000);
digitalWrite(LED_BUILTIN, LOW);
delay(1000);
}
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
|---|---|---|---|---|---|---|---|---|---|---|---|
| GND | (1) | (1) | (1) | (1) | (1) | (1) | (1) | (1) | (1) | (1) | GND |
| GND | (2) | I/O 0 | I/O 1 | I/O 2 | I/O 3 | I/O 4 | I/O 5 | I/O 6 | I/O 7 | (2) | GND |
| A | B | C | D | E | F | H | J | K | L | M | N |
(1) Pins of the upper row differ significantly between systems. Some of them can be used as additional input or output lines.
(2) Pins B and M of the lower row are available on all systems, but with different constraints.
I/O pins from C to L are connected to one port of a VIA or CIA chip on all systems and can be independently programmed as input or output.
This project is inspired by the Arduino programming model and API.
The setup() / loop() structure and function naming follow the conventions popularized by the Arduino platform.
Arduino is an open-source project developed by the Arduino team: https://www.arduino.cc/
This project is not affiliated with or endorsed by Arduino.
