You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
startColorOffset = getNewColorOffset(colorCycleLength, startColorOffset, 0); // This line is needed to condition the user's input start color offset because it could be greater than the cycle length
216
+
color_t value = getOffsetColor(data, startColorOffset);
186
217
218
+
hd_hw_extent_t x0w = (hd_hw_extent_t)x0; // Cast to hw extent type to be sure of integer values
219
+
hd_hw_extent_t y0w = (hd_hw_extent_t)y0;
187
220
221
+
SSD1309_Bite_t user = *((SSD1309_Bite_t*)value);
222
+
if(user.b0){ // Check if the user's bit is set or not (this implies that the user should always set bit 0 of a 'bite' to the pixel value they want)
223
+
// Need to set the pixel high
224
+
setWindowPixel(x0, y0, pCurrentWindow);
225
+
}else{
226
+
// Need to clear the pixel
227
+
clearWindowPixel(x0, y0, pCurrentWindow);
228
+
}
229
+
// updateRefreshZone( x0, x0, y0, y0); // Tell where we need updates
230
+
// refreshDisplay(); // Perform updates
231
+
}
188
232
189
233
// Functions that don't need color arguments, for simplicity.
0 commit comments