Commit Graph
100 Commits
Author SHA1 Message Date
Joey Castillo 1163041624 update existing apps to use new RTC API 2021-09-28 19:53:29 -04:00
Joey Castillo 6334af0136 tweak to API nomenclature: tick happens once a second, other interrupts are periodic 2021-09-28 19:18:42 -04:00
Joey Castillo 9da9dfb7b2 rtc: support periodic ticks at intervals from 1 to 128 Hz 2021-09-28 15:13:09 -04:00
Joey Castillo 39a17c99b9 overdue refactor: compile all watch modules separately 2021-09-28 14:42:56 -04:00
Joey Castillo 152ba8aec6 simplification: return date/time in same format as clock register 2021-09-28 11:06:27 -04:00
Joey Castillo b353e47506 remove unused ASF code 2021-09-27 17:51:52 -04:00
Joey Castillo a65dcf1ec8 WIP: refactor RTC to use clock mode directly 2021-09-27 17:42:27 -04:00
Joey Castillo 7945f4c4a3 add warning about external wake on old board rev 2021-09-23 17:27:41 -04:00
Joey Castillo a23901f843 final deep sleep refactor: retain RAM, call it shallow sleep mode 2021-09-23 14:57:30 -04:00
Joey Castillo fd5e8046d0 support alternate LCD pinouts 2021-09-21 15:50:43 -04:00
Joey Castillo 63322a3b7f add WIP dev board 2021-09-20 17:20:12 -04:00
Joey Castillo 9b0605c1b9 add gerbers for board revision 5 2021-09-20 10:15:16 -04:00
Joey Castillo 0f4f709ab1 clean up PCB folder 2021-09-20 09:30:50 -04:00
Joey Castillo b3bb3fe2a7 add board definition for old prototype 2021-09-19 19:20:19 -04:00
Joey Castillo bfd7a6f62f sensor board concepts 2021-09-18 15:24:06 -04:00
Joey Castillo 8184b08bb6 PCB revision 5 2021-09-18 15:22:54 -04:00
Joey Castillo 9baec59217 support common anode LEDs 2021-09-18 14:50:20 -04:00
Joey Castillo 5ff4a88374 add a new deep sleep mode alongside backup mode 2021-09-18 14:50:20 -04:00
Joey Castillo d97e74058f fix USB VID/PID 2021-09-18 14:03:46 -04:00
Joey Castillo ee7ae2d345 move buzzer demo to apps folder 2021-09-18 14:03:10 -04:00
Joey Castillo 07420e6ead move apps to subdirectory, add relative path support to Makefile 2021-09-16 15:40:01 -04:00
Joey Castillo 21a627aad6 lcd: add special case for T in position 1 (fixes #10) 2021-09-14 15:19:21 -04:00
Joey Castillo cb98f29e57 more work on alternate board pinouts 2021-09-14 15:12:30 -04:00
Joey Castillo e4c1700806 remove unused ASF config files 2021-09-14 01:07:02 -04:00
Joey Castillo 05c816960b deprecate debug UART 2021-09-13 23:39:24 -04:00
Joey Castillo 5a53916f0e first steps toward supporting alternate board pinouts 2021-09-13 16:44:07 -04:00
Joey Castillo 5cd6b1afc7 improve consistency of function names 2021-09-13 13:41:28 -04:00
Joey Castillo cd935193e3 remove unused ASF code 2021-09-13 13:21:33 -04:00
Joey Castillo 66d45c521e implement ADC functionality 2021-09-13 09:48:31 -04:00
Joey Castillo 71e411d860 handle watch variant with red/blue LED 2021-08-31 20:29:13 -04:00
Joey Castillo a232999e93 update deprecated functions in BME280 demo app 2021-08-31 19:39:37 -04:00
Joey Castillo 637964ae4b simplify: always use the TCC to drive the LEDs 2021-08-31 19:38:06 -04:00
Joey Castillo b22915431b add method for detecting low battery 2021-08-31 19:02:44 -04:00
Joey Castillo 36322fd737 remove delays from BME280 demo, no longer needed 2021-08-30 17:58:53 -04:00
Joey Castillo fbd9ae4b67 run watch at 4 MHz unless USB is enabled 2021-08-30 17:35:47 -04:00
Joey Castillo b0845cc3f1 fix typo 2021-08-30 14:37:14 -04:00
Joey Castillo 6650e8aef0 add printf statements to demo project 2021-08-30 14:28:30 -04:00
Joey Castillo 53053ad89a SIMPLIFY! Always run the main clock at 8 MHz 2021-08-30 14:03:43 -04:00
Joey Castillo 27ce7003b3 remove unused TC/TCC driver code 2021-08-29 17:47:33 -04:00
Joey Castillo 6353d25d46 big PWM refactor: drive both LEDs and buzzer from TCC 2021-08-29 17:40:44 -04:00
Joey Castillo 7dc4b0fdc6 WIP TCC refactor; remove low frequency notes 2021-08-29 17:13:41 -04:00
Joey Castillo 34ec77c7fd handle changing CPU speed 2021-08-29 17:11:31 -04:00
Joey Castillo 74950b110e enable USB earlier so app can log sooner 2021-08-29 15:42:37 -04:00
Joey Castillo ef0ed276a5 handle tinyusb device tasks on a timer, allows delays in app 2021-08-28 19:53:12 -04:00
Joey Castillo 27e3863a05 add alternate _write for debugging USB issues 2021-08-28 19:44:52 -04:00
Joey Castillo 048b5c1d3f force sending data after a _write 2021-08-28 19:34:31 -04:00
Joey Castillo 52ba3b3710 fix buzzer demo, add note about extwake 2021-08-28 14:46:58 -04:00
Joey Castillo 39bba27d7d simplify project makefiles 2021-08-28 14:13:03 -04:00
Joey Castillo 3e45de7dea implement USB console 2021-08-28 13:55:17 -04:00
Joey Castillo 39a5c822a2 add tinyusb 2021-08-28 12:50:18 -04:00
Joey Castillo c9e00b83bb update .gitignore 2021-08-28 12:50:00 -04:00
Joey Castillo d09d3c3c95 external interrupt refactor: allow enabling in watch library functions 2021-08-25 12:15:58 -06:00
Joey Castillo c35e8e2b07 disable all external interrupts by default 2021-08-25 12:14:30 -06:00
Joey Castillo df94a83bf5 add majority-vote filtering to all external interrupt pins 2021-08-25 12:10:40 -06:00
Joey Castillo 9a5f6c0de0 disable all RTC tamper interrupts by default 2021-08-25 12:08:33 -06:00
Joey Castillo d7544276df add definitions for pin A3/A4 (same as D0/D1) 2021-08-25 12:04:38 -06:00
Joey Castillo 2c6c605372 silence unused parameter warnings 2021-08-24 21:28:52 -06:00
Joey Castillo 89c8e3db54 remove watch_app.c 2021-08-24 10:12:05 -06:00
Joey Castillo 67b749f3af refactor: break out different areas of functionality 2021-08-23 08:11:49 -06:00
Joey Castillo 42f0eac6d1 fix typo; log hour, not second 2021-08-18 14:36:38 -04:00
Joey Castillo 8f0aeb0217 add data logging, more modes to BME280 project 2021-08-18 13:50:09 -04:00
Joey Castillo ecf853da6d reapprove dimension errors 2021-08-17 22:44:09 -04:00
Joey Castillo 9f1dd2985a fix typo 2021-08-17 13:59:10 -04:00
Joey Castillo f9c8a935e6 move debug uart methods, clarify license info 2021-08-17 13:16:38 -04:00
Joey Castillo 90211a7588 add license file 2021-08-17 13:16:23 -04:00
Joey Castillo 5149520563 disable 9-pin extwake interrupts by default 2021-08-17 13:12:34 -04:00
Joey Castillo 84e179de88 add beep and light to BME280 app 2021-08-14 19:20:42 -04:00
Joey Castillo f172763bf2 tweak resistor values, move board origin to 0,0 2021-08-14 19:20:07 -04:00
Joey Castillo beae305bb7 add arduino sketch to burn bootloader 2021-08-14 19:17:46 -04:00
Joey Castillo 059dcfc181 disable debug UART by default 2021-08-14 19:16:18 -04:00
Joey Castillo efd75d2504 led tweaks 2021-08-14 19:15:51 -04:00
Joey Castillo 7caa6ff19a document power consumption, etc 2021-08-11 01:08:46 -04:00
Joey Castillo 1ab1d3fff2 check if callback is null (could happen in wake from backup) 2021-08-10 22:07:30 -04:00
Joey Castillo 0f49ed8150 fix LED part number, make boards identical 2021-08-09 15:04:51 -04:00
Joey Castillo 569c3fc30f add a version with bisexual lighting (same board, different resistor values) 2021-08-09 13:05:48 -04:00
Joey Castillo 5c07ff2dee tidy up PCB folder, add gerbers for A1-04 2021-08-09 13:04:12 -04:00
Joey Castillo 616e4fb105 add API for playing sounds from the buzzer 2021-08-08 20:17:08 -04:00
Joey Castillo ca96db1ef5 add link to errata 2021-08-08 15:14:36 -04:00
Joey Castillo ac7807d9f5 document indicator segments 2021-08-08 15:12:12 -04:00
Joey Castillo e45fdf15af work on RTC tamper interrupt and external wake 2021-08-08 15:02:38 -04:00
Joey Castillo 27edc50be1 fix renaming of _watch_rtc_is_enabled 2021-08-08 15:02:04 -04:00
Joey Castillo e491db84ba rename segments in schematic to match SLCD driver 2021-08-08 10:32:49 -04:00
Joey Castillo 792665c7fe add segment map link 2021-08-07 13:48:01 -04:00
Joey Castillo 973efe7edc add notes to segment map 2021-08-07 13:34:36 -04:00
Joey Castillo 754fb60ee7 add more notes to character set 2021-08-07 13:30:28 -04:00
Joey Castillo a2573d7e0a rename 'sensing' indicator to 'signal' 2021-08-07 13:26:05 -04:00
Joey Castillo f102be4864 segment lcd: add indicator methods, document character map 2021-08-07 11:22:49 -04:00
Joey Castillo 8a49b9ae2b add pinout table for sensor boards 2021-08-05 17:31:01 -04:00
Joey Castillo 9fca9c7188 documentation tweaks 2021-08-05 16:15:53 -04:00
Joey Castillo 4e0f249bd2 documentation! 2021-08-05 16:04:03 -04:00
Joey Castillo fb249f9b48 bme280 app: use forced mode, only measure when needed 2021-08-05 12:29:09 -04:00
Joey Castillo 67e9d173ca new project: sensor watch environment 2021-08-04 18:43:52 -04:00
Joey Castillo 021a901bc1 some I2C work 2021-08-04 18:33:40 -04:00
Joey Castillo 15050f8ace drop legacy terminology. how hard was that? 2021-08-04 12:09:33 -04:00
Joey Castillo 99942154f7 break up sections 2021-08-04 11:54:39 -04:00
Joey Castillo fc31739eb6 WIP deep sleep mode 2021-08-03 18:09:58 -04:00
Joey Castillo 8a06636833 make this snake_case for consistency 2021-08-03 11:54:43 -04:00
Joey Castillo 6cb7e38be2 actually debounce button presses 2021-08-03 11:53:57 -04:00
Joey Castillo d2e43d132c move app.h to library, no need for user to change it 2021-08-02 17:34:35 -04:00
Joey Castillo 1cc0cb3663 add readme and images 2021-08-02 17:04:33 -04:00