emfcamp / Mk3-Firmware

Firmware that runs on the TiLDA v3 Badge
MIT License
28 stars 13 forks source link

ugfx interrupts #15

Closed mattbrejza closed 8 years ago

mattbrejza commented 8 years ago

Should ugfx_yield() (which does things like poll buttons and redraw widgets when needed) be moved from systick (almost certainly), and moved to TIM3? with a low priority interrupt?

mattbrejza commented 8 years ago

Use ugfx.poll() now:

/// \method poll() /// /// calls gfxYield, which will handle widget redrawing when for inputs. /// Register as follows: /// tim = pyb.Timer(3) /// tim.init(freq=60) /// tim.callback(lambda t:ugfx.poll())