pico_examples
notcursesada
pico_examples | notcursesada | |
---|---|---|
3 | 1 | |
28 | 11 | |
- | - | |
4.7 | 1.5 | |
4 months ago | about 1 year ago | |
Ada | Ada | |
- | GNU General Public License v3.0 or later |
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.
pico_examples
-
Issues while connecting NeoPixel (WS2812B) LED strips with Raspberry Pi Pico
I'm having issues connecting the WS2812B with Raspberry Pi Pico. I'm trying to execute the example program https://github.com/JeremyGrosser/pico_examples/blob/master/ws2812_demo/src/main.adb
- What is the most low level way of setting GPIO outputs?
-
Designing Winterbloom's Castor & Pollux - a deep dive into the hardware design of a Roland Juno-inspired Eurorack module.
It'll all be open source eventually, but for now I've just released my driver libraries and some examples. https://github.com/JeremyGrosser/pico_examples
notcursesada
-
Gnat 2021 GPL Community Edition Ada 202x compiler released
* Is there a way to declare data layouts to have compatibility with C, similar to #[repr(C)] in rust?
Yes, and if you have a C header file, gcc can even translate most struct definitions for you. Here's an example of a "thin" binding generated that way: https://github.com/JeremyGrosser/notcursesada/blob/master/sr...
* Is there a way to catch C++ exceptions?
Yes. https://www.adacore.com/gems/gem-114-ada-and-c-exceptions
* Is there a way to catch C longjmps()?
By default, the GNAT runtime uses setjmp/longjmp to implement exceptions. I'm not sure how you'd connect that to a C library's setjmp though.
* Is there a way to have some kind of custom control over ABI issues, e.g. define custom FFIs to langauges with a different ABI? Or anything close to this? For that matter, does any language have something like this or does it not make sense?
ABIs are selected with the Convention aspect. Conventions are implementation defined and would require patches to the compiler to add new ones. GNAT currently supports Assembler, C, CPP, COBOL, and Fortran calling conventions.
What are some alternatives?
rp2040_hal - Ada drivers for the Raspberry Pi RP2040 SoC
adaspark
Env-NPD - A Raspberry Pi Pico powered Numpad!
evdev-ada - An Ada 2012 library to read input events and use force-feedback using Linux' evdev API
BBS-BBB-Ada - A collection of Ada sources for working with Linux based embedded computers, such as the BeagleBone Black or Raspberry Pi
cortex-gnat-rts - This project contains various GNAT Ada Run Time Systems (RTSs) targeted at Cortex boards: so far, the Arduino Due, the STM32F4-series evaluation boards from STMicroelectronics, and the BBC micro:bit (v1)
bingada - Bingo application in GTKAda