toit-color-tft
toit-lsm303dlhc
toit-color-tft | toit-lsm303dlhc | |
---|---|---|
1 | 1 | |
3 | 0 | |
- | - | |
6.0 | 0.0 | |
24 days ago | 6 months ago | |
Toit | ||
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
toit-color-tft
-
The Toit language is now open source
As an example, here's the driver for small TFT screens of the type that is built into the M5Stack. This is an SPI-attached device: https://github.com/toitware/toit-color-tft/blob/main/src/col...
If you just have an M5Stack Core2 and want to play with it, then you don't need to write a new driver though. Probably you want the examples from this package: https://pkg.toit.io/package/github.com%2Ftoitware%2Ftoit-m5s...
(The implementation of that package in the src directory is an example of using an I2C peripheral.)
toit-lsm303dlhc
-
The Toit language is now open source
Toit is optionally typed, and supports type annotations.
Type annotations for locals, fields, and globals are written with a trailing `/Type`. Return types are written with `-> ReturnType`.
See https://github.com/toitware/toit-lsm303dlhc/blob/main/src/ac... for a file I recently edited.
When a type annotation is written, the compiler enforces it. It uses it for static optimizations, and dynamically checks that the type is correct.
When a type can be null, it has to be suffixed by `?`.
What are some alternatives?
toit - Program your microcontrollers in a fast and robust high-level language.
skybison - Instagram's experimental performance oriented greenfield implementation of Python.
badger - Keyboard firmware written from scratch using Nim
beartype - Unbearably fast near-real-time hybrid runtime-static type-checking in pure Python.
ulisp - A version of the Lisp programming language for ATmega-based Arduino boards.