SPiCboard library API documentation

# Overview

This is the API documentation for the SPiCboard library. The library offers the following modules to access the different hardware parts on the board:

- 7seg (Seven Segment Display) : functions to control the two 7-segment displays
- ADC (Analog to Digital Converter) : functions to query the state of the potentiometer and the photosensor (connected to A/D converters internally)
- Button : functions to access the two buttons (both event-driven and polling-based)
- LED access : functions to control the state of the eight LEDs
- Serial Communication : functions to connect with another SPiCboard using serial communication
- Timer module : functions to register alarm events with the hardware timers
- OLED Display : functions to use an optional 128×64 OLED display
- serial console : functions to connect to a serial console for in- and output

# Additional documentation

Some additional information for (G)SPiC

- Häufige Fragen und Probleme (frequently asked questions, FAQ)
- Atmel Studio Zuhause
- Linux-Anleitung
- SPiCboard hardware documentation

Some additional information about the ATmega328PB Xplained Mini

- ATMega328PB Datasheet
- ATMega328PB Xplained Mini User Guide
- ATMega328PB Xplained Mini Design Documentation
- SSD1306 (128x64 OLED Display) Advance Information
- avr-libc Documentation

The following links offer additional documentation for the hardware and software environment in use:

- C-Einführungsbuch "C als erste Programmiersprache": verfügbar bei Springerlink online.
- "The New C Standard: An Economic and Cultural Commentary" C-Standard mit Kommentaren.
- AVR-GCC-Tutorial on mikrocontroller.net (German)
- GDB reference card

Checkout the SPiCboard-Simulator:

- SPiCsim v3.2 (6 MB)
- run with: `java -jar SPiCsim.jar` (and load the executable)
- run exutable directly with: `java -jar SPiCsim.jar boardtest.elf`