https://github.com/AstraLuma/sconsduino
Python Module for SConstruct files to work with arduino better.
https://github.com/AstraLuma/sconsduino
Last synced: 10 months ago
JSON representation
Python Module for SConstruct files to work with arduino better.
- Host: GitHub
- URL: https://github.com/AstraLuma/sconsduino
- Owner: AstraLuma
- Created: 2014-09-05T17:38:00.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-10-20T16:31:01.000Z (about 11 years ago)
- Last Synced: 2025-02-10T14:21:12.316Z (11 months ago)
- Language: Python
- Size: 359 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
sconsduino
==========
If you want to use Arduino libraries with a normal editor, this module may be for you.
Install this, and you can use an `SConstruct` file similar to:
```python
from sconsduino.teensy import Teensy
env = Environment()
board = Teensy(
version=3.1,
env=env,
build_dir='bin',
)
# Set to 24000000, 48000000, or 96000000 to set CPU core speed
board.cpu(speed=96000000)
# (Teensy)
# For key layouts, set to US_ENGLISH, CANADIAN_FRENCH, CANADIAN_MULTILINGUAL, DANISH, FINNISH, FRENCH, FRENCH_BELGIAN, FRENCH_SWISS,
# GERMAN, GERMAN_MAC, GERMAN_SWISS, ICELANDIC, IRISH, ITALIAN, NORWEGIAN, PORTUGUESE, PORTUGUESE_BRAZILIAN, SPANISH, SPANISH_LATIN_AMERICA,
# SWEDISH, TURKISH, UNITED_KINGDOM, US_INTERNATIONAL
board.layout('US_ENGLISH')
# (Teensy)
board.usb_mode('SERIAL')
board.sketch('blinky')
```
Supported Boards
----------------
* Teensy 3/3.1
* Bare ATMEGA328 (very similar to an uno)
* Arduino Pro Mini