Commit graph

10 commits

Author SHA1 Message Date
austenadler 340e5d1a4a
Fix lengthBytesUTF8 not a function (#255)
* Add lengthBytesUTF8 as an exported runtime method

* Also export printErr as a runtime method

---------

Co-authored-by: Austen Adler <agadler@austenadler.com>
2023-07-29 07:25:27 -04:00
Michael Gruenewald 10d4166986 Disable all built-in Make rules 2022-10-08 22:23:30 +02:00
Michael Grünewald 866b5a47d6
Fix DEPFILES 2022-10-06 23:09:59 +02:00
George Hahn c40d75b876 Make submodule and directory rules order-only prerequisites on objects
This instructs make to run the tinyusb and directory rules before
building any objects. Docs: [1].

After this change, `make clean` started running
the tinyusb submodule rule before cleaning. This appears to have been
caused by one of the `build/*.d` files overlapping with the `tinyusb`
name, triggering that rule. I didn't trace this all the way down to a
root cause, but switching the include to something less broad solved the
issue. Roughly guided by [2].

1: https://www.gnu.org/software/make/manual/html_node/Prerequisite-Types.html

2: http://make.mad-scientist.net/papers/advanced-auto-dependency-generation/
2022-05-19 00:33:31 -06:00
Joey Castillo 092e760d22 add rule for static analysis 2022-04-10 12:45:21 -04:00
Alexsander Akers a0f8e9c8bc Implement buzzer methods with AudioContext API 2022-01-27 11:12:01 -05:00
Alexsander Akers b8de35658f
Sensor Watch Simulator (#35)
* Put something on screen

* Use the 32bit watch_date_time repr to pass from JS

* Implement periodic callbacks

* Clear display on enabling

* Hook up watch_set_led_color() to SVG (green-only)

* Make debug output full-width

* Remove default Emscripten canvas

* Implement sleep and button clicks

* Fix time zone conversion bug in beats-time app

* Clean up warnings

* Fix pin levels

* Set time zone to browser value (if available)

* Add basic backup data saving

* Silence format specifier warnings in both targets

* Remove unnecessary, copied files

* Use RTC pointer to clear callbacks (if available)

* Use preprocessor define to avoid hardcoding MOVEMENT_NUM_FACES

* Change each face to const preprocessor definition

* Remove Intl.DateTimeFormat usage

* Update shell.html title, header

* Add touch start/end event handlers on SVG buttons

* Update shell.html

* Update folder structure (shared, simulator, hardware under watch-library)

* Tease out shared components from watch_slcd

* Clean up simulator watch_slcd.c inline JS calls

* Fix missing newlines at end of file

* Add simulator warnings (except format, unused-paremter)

* Implement remaining watch_rtc functions

* Fix button bug on mouse down then drag out

* Implement remaining watch_slcd functions

* Link keyboard events to buttons (for keys A, L, M)

* Rewrite event handling (mouse, touch, keyboard) in C

* Set explicit text UTF-8 charset in shell.html

* Address PR comments

* Remove unused directories from include paths
2022-01-25 15:03:22 -05:00
Joey Castillo d33d3fbd51 remove --recursive flag from git submodule update 2021-12-08 15:51:41 -05:00
Willian Paixao 54d1981df6
add tinyusb as a git submodule 2021-12-05 19:35:29 +01:00
Joey Castillo 39bba27d7d simplify project makefiles 2021-08-28 14:13:03 -04:00