https://github.com/jotrorox/arduino.c3l
A minimal from scratch arduino library for the c3 programming language written without any external dependencies
https://github.com/jotrorox/arduino.c3l
arduino arduino-library arduino-uno c3 c3-lib c3lang embedded embedded-c3 library
Last synced: 6 days ago
JSON representation
A minimal from scratch arduino library for the c3 programming language written without any external dependencies
- Host: GitHub
- URL: https://github.com/jotrorox/arduino.c3l
- Owner: Jotrorox
- License: mit
- Created: 2026-04-11T07:51:46.000Z (2 months ago)
- Default Branch: master
- Last Pushed: 2026-06-06T03:01:23.000Z (13 days ago)
- Last Synced: 2026-06-06T05:14:40.147Z (13 days ago)
- Topics: arduino, arduino-library, arduino-uno, c3, c3-lib, c3lang, embedded, embedded-c3, library
- Language: C3
- Homepage: https://jotrorox.github.io/arduino.c3l/
- Size: 142 KB
- Stars: 9
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# arduino.c3l
A small C3 library for Arduino/AVR projects, focused on ATmega328P boards such as the Arduino Uno.
## Features
- GPIO (`pin_mode`, `digital_write`, `digital_read`)
- Timing (`delay_ms`, `delay_us`, `millis`, `micros`)
- ADC (`analog_read`)
- PWM (`analog_write`)
- Servo motor driver (`servo::attach`, `servo::write_angle`, `servo::write_us`)
- UART, I2C, interrupts, SSD1306/SSD1309 OLED, and LCD1602 I2C display drivers
- Minimal AVR startup/runtime code
## Example
```c3
module blink;
import arduino::gpio;
import arduino::time;
fn void main() @export("start") {
gpio::pin_mode(D13, OUTPUT);
while (true) {
gpio::digital_write(D13, HIGH);
time::delay_ms(1000);
gpio::digital_write(D13, LOW);
time::delay_ms(1000);
}
}
```
More examples are available in the `examples/` directory.
## Status
This project is minimal and experimental. APIs may change.
If there are at any time problems with this library,
feel free to open an issue or if you need help with something feel free to message me.
Please do so either through discord(@jotrorox) or matrix(@jotrorox:matrix.org).
## License
Made in 2026 by Johannes (jotrorox) Müller and published under the MIT License.