kopia lustrzana https://github.com/pimoroni/pimoroni-pico
UC8159: Timeout compiler error fix.
rodzic
2d8080eada
commit
589a9e1b23
|
@ -39,10 +39,9 @@ namespace pimoroni {
|
|||
|
||||
bool UC8159::is_busy() {
|
||||
if(BUSY == PIN_UNUSED) {
|
||||
if(timeout > 0 && absolute_time_diff_us(get_absolute_time(), timeout) > 0) {
|
||||
if(absolute_time_diff_us(get_absolute_time(), timeout) > 0) {
|
||||
return true;
|
||||
} else {
|
||||
timeout = 0;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -26,13 +26,13 @@ namespace pimoroni {
|
|||
|
||||
// interface pins with our standard defaults where appropriate
|
||||
uint CS = SPI_BG_FRONT_CS;
|
||||
uint DC = 28;
|
||||
uint DC = 28; // 27;
|
||||
uint SCK = SPI_DEFAULT_SCK;
|
||||
uint MOSI = SPI_DEFAULT_MOSI;
|
||||
uint BUSY = PIN_UNUSED;
|
||||
uint RESET = 27;
|
||||
uint RESET = 27; //25;
|
||||
|
||||
absolute_time_t timeout = 0;
|
||||
absolute_time_t timeout;
|
||||
|
||||
public:
|
||||
enum colour : uint8_t {
|
||||
|
|
Ładowanie…
Reference in New Issue