M5StickC and M5StickCplus migrate drives from pins/i2c to Ecma-419#1609
M5StickC and M5StickCplus migrate drives from pins/i2c to Ecma-419#1609stc1988 wants to merge 3 commits into
Conversation
|
There’s an additional update. I enabled the PEK (Power Enable Key) on the AXP192 so that short presses of the power button can be detected. However, since pekstate needs to be polled, it’s disabled by default. |
|
The changes look good. The power button implementation is a reasonable solution given that polling is necessary. For future reference, you can now write these... const white = render.makeColor(255, 255, 255);
const blue = render.makeColor(0, 0, 255);as const white = render.makeColor("white");
const blue = render.makeColor("blue");Since they are cached at start-up, there's no meaningful performance difference. The readability is nice. Also, the list of colors can be extended by the host. That means that a Stack-chan host could provide color names that are used in the Stack-chan UI. I suggest sticking to color names (e.g. "bright orange" and not drift into uses ("mouth", "background", etc). |
|
This has been merged and will be available in the next code drop. |
Migrate below drivers from pins/i2c to Ecma-419 sensor and peripheral.
And I updated the M5StickC-related examples to use these drivers.