Commit Graph

30 Commits

Author SHA1 Message Date
Wladimir J. van der Laan
67078f6242 rust: Fixes for newer dependencies 2020-06-02 21:07:54 +00:00
Wladimir J. van der Laan
5d20ac05a0 rust: k210-console: Fixes for colorfont generation script 2020-02-16 15:01:05 +00:00
Wladimir J. van der Laan
34761dc4b6 rust: k210-console: allow utf to map to color font
- allow utf map function to map to color font (by making it return
  cell-flags too)
- gencolorfont.py accepts multiple input images
2020-02-09 14:30:05 +00:00
Wladimir J. van der Laan
556b375078 rust: k210-console: Add cursor positioning 2020-02-07 19:50:37 +00:00
Wladimir J. van der Laan
0fbf997b0d rust: Split out some structures from k210-console 2020-02-03 16:39:14 +00:00
Wladimir J. van der Laan
69636c4005 rust: Pass in font mapping to k210-console
Support other unicode to font mappings (such as application specific
ones) besides cp437.
2020-02-03 16:19:00 +00:00
Wladimir J. van der Laan
fa38e28491 rust: Pass in font for k210-console
Allow the user code to specify which font to use.
2020-02-03 15:38:17 +00:00
Wladimir J. van der Laan
f9620a47c3 rust: add colorfont support to k210-console
useful for emoji and other small hardcoded images
2020-02-03 15:00:33 +00:00
Wladimir J. van der Laan
a1c65405ea rust: Clean up cargo patches
No more need for any `k210-hal` and `k210-pac` patches with 0.2.0
2019-12-28 20:17:37 +00:00
Wladimir J. van der Laan
33eab72e3e k210-console: SGR 39/49
these are fairly important: reset to default color
2019-10-14 02:37:53 +00:00
Wladimir J. van der Laan
9bdf7ea2df rust: Factor PLL computation out from sysctl
If you need to have mystery meat algorithms, at least abstract
them.
2019-08-21 08:49:41 +00:00
Wladimir J. van der Laan
d7eb8dd0e8 rust: sysctl PLL setting
Port over the terrible PLL frequency setting code, and use it to set up
the clocks for every demo.
2019-08-20 21:18:23 +00:00
Wladimir J. van der Laan
161bd9982e rust: Prefer X::from to as X 2019-08-11 18:16:44 +00:00
Wladimir J. van der Laan
e86d5c5f75 Use DMAC for display everywhere
This mimics the way the Kendryte SDK does things—it is better because
the MMIO based SPI tends to sometimes lose synchonization when the CPU
doesn't keep up providing data fast enough.
2019-08-07 10:22:05 +00:00
Wladimir J. van der Laan
d4b2b6bbbd rust: Dependency bump k210-hal
Peripherals moved to pac, UARTS take the pins to use and internally
configure sysctl.
2019-07-03 18:24:24 +00:00
Wladimir J. van der Laan
c1fc53d249 Dependencies bump 2019-07-02 17:20:39 +00:00
Wladimir J. van der Laan
00ac503e3e rust: clean up FPIOA interface
Remove need for .into() everywhere by accepting everything
that goes into usize in the appropriate methods.
2019-06-01 21:56:35 +00:00
Wladimir J. van der Laan
df87ec9e90 rust: k210-console improvements 2019-05-30 19:37:38 +00:00
Wladimir J. van der Laan
71b427b188 rust: Add weather
Add `weather` demo, also extend console as necessary to handle wttr.in's escape codes.
2019-05-27 07:51:21 +00:00
Wladimir J. van der Laan
d14c640356 rust: Add rgbcontrol 2019-05-23 13:53:02 +00:00
Wladimir J. van der Laan
72a5434397 rust: uart-passthrough set baudrate and reset 2019-05-21 12:09:10 +00:00
Wladimir J. van der Laan
d07fd84160 Unify license and CoC
No need to have a zillion copies of these in the repository. Also remove
references to RISC-V team.
2019-05-20 15:59:28 +02:00
Wladimir J. van der Laan
ce28856653 rust: LCD x/y y/x orientation 2019-05-18 19:51:24 +00:00
Wladimir J. van der Laan
13b91fe993 rust: Generalize SPI peripheral 2019-05-18 18:14:26 +00:00
Wladimir J. van der Laan
44cad99478 rust/sysctl: APB clocks 2019-05-17 18:07:39 +00:00
Wladimir J. van der Laan
1b48da7be0 rust/k210-shared: More helpful panic handler
Try sending the panic message to UARTHS.
2019-05-15 08:14:49 +00:00
Wladimir J. van der Laan
a7f437c8ce rust: Add accelerometer 2019-05-14 17:19:25 +02:00
Wladimir J. van der Laan
08cd58654f rust: enum for I/O pin definitions 2019-05-14 11:30:22 +00:00
Wladimir J. van der Laan
667c051969 rust: Add mandelbrot
Add mandelbrot zoom demo, and move some things to shared crate.

Switch to most recent k210-pac revision to fix fp issue.
2019-05-12 18:17:42 +00:00
Wladimir J. van der Laan
d9453e8a52 Fun with rust 2019-05-11 10:24:59 +00:00