Commit 8c1abbd
committed
Improve HM01B0 PIO sync
Have to disable DMA to reset write address
Also, restarting PIO SM doesn't clear RX buffer, have to read out manually
Still not perfect. Start of frame seems consistently good, but DMA seems to loose sync or something part way through with a lot of frames1 parent 79fd3a1 commit 8c1abbd
1 file changed
+10
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | | - | |
204 | 203 | | |
205 | 204 | | |
206 | 205 | | |
| |||
286 | 285 | | |
287 | 286 | | |
288 | 287 | | |
289 | | - | |
290 | 288 | | |
291 | 289 | | |
292 | 290 | | |
| |||
297 | 295 | | |
298 | 296 | | |
299 | 297 | | |
300 | | - | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
301 | 306 | | |
| 307 | + | |
| 308 | + | |
302 | 309 | | |
303 | | - | |
304 | 310 | | |
305 | 311 | | |
306 | 312 | | |
| |||
0 commit comments