russhughes/st7789_mpy

Example - game "roids" stops with error

hajulied opened this issue · 1 comments

I tried out the game "roids". But it stops with the following error-message:
Traceback (most recent call last):
File "", line 366, in
File "", line 307, in main
AttributeError: 'Buttons' object has no attribute 'hyper'
What is the solution?

Make sure a hyper button is defined in the tft_buttons.py file.

https://github.com/russhughes/st7789_mpy/blob/master/examples/configs/esp32_buttons/tft_buttons.py

Or if you have no button available for hyper add:

 self.hyper = 0