evilsocket / pwnagotchi

(⌐■_■) - Deep Reinforcement Learning instrumenting bettercap for WiFi pwning.
https://pwnagotchi.ai/
Other
7.72k stars 1.15k forks source link

Include InkyFAST for faster updates to the screen for Inky pHat users #604

Open jetbalsa opened 4 years ago

jetbalsa commented 4 years ago

Requires testing, but someone made a hack to do faster partial updates to the display shown here:

https://github.com/wavelet2/inky_fast

More Details here: https://forums.pimoroni.com/t/my-inky-phat-clock-refresh-speed-question/6955/6

He notes on usage:

To use, create a display by calling the function inky_fast.InkyPHATFast(“black”) or inky_delta.InkyPHATDelta(“black”) rather than Inky.InkyPHAT(colour) and then call the method show_stay_awake() rather than show() on the display object.

Arttumiro commented 4 years ago

Not completely sure but doesnt fastAndFurious already do this? but its not mentioned in default.yml comments

dipsylala commented 4 years ago

Yeah, I know the source for this and I did some research around it when I was implementing fastAndFurious. There are some issues around this that I tried to consider when improving the Phat speed:

We've stripped down the LUT in a similar way to Wavelet did - I'm reluctant to keep the display powered up though.

We're ignoring Reds to improve speed

I tried upping the SPI but got screen issues (garbage) on multiple units - this could be worth looking into a bit more.