ChanServ changed the topic of #zig to: zig programming language | ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
<skyfex>
andrewrk: Do you have any microcontroller devkits?
scientes has quit [Ping timeout: 248 seconds]
arBmind has quit [Quit: Leaving.]
<andrewrk>
skyfex, I do not
cenomla has joined #zig
<skyfex>
andrewrk: I'm thinking of sending you a micro:bit. I might I have a spare. It's one of the simplest devkits out there.
<andrewrk>
neat! does that include hardware?
cenomla has quit [Quit: cenomla]
<skyfex>
It's basically a debugger and nrf51 chip on a tiny board with an LED matrix, two buttons, and accelerometer+compass
<skyfex>
The debugger can be connected via USB, and shows up as a USB disk. You just put a .hex or .bin file there and that programs the nrf51 microcontroller
<skyfex>
The debugger can also be used for proper debugging with ARM Kiel uVision
<skyfex>
and probably GDB etc.
<andrewrk>
that sounds intruiging
<andrewrk>
if you sent me a kit I'd definitely get a demo project going
<skyfex>
It's meant for teaching kids to program, but I find it's really good for more advanced hobby projects too
<skyfex>
I'll check and get back to you if I find a spare. I bought 10 a while back
<skyfex>
Oh, also the debugger has a UART connection to the nRF51 microcontroller too. It shows up as a plain USB COM port
<skyfex>
So that's how I did Hello World
<skyfex>
I've made some progress with the demo. I've gotten interrupts to work, and have improved the UART driver to use interrupts
<andrewrk>
nice! I still need to work on the compiler-rt issues and bit fields
<skyfex>
Is there support for inline assembly?
<andrewrk>
yes
<andrewrk>
I still need to add docs for that, but you can grep the compiler source code for "asm" and ask any questions