CPPDecompressionMethods.hpp
/**
 * @brief Draws a pixel into the pixel buffer THIS SHOULD BE CHANGED TO MATCH YOUR SETUP
 * @param x The x coordinate of the pixel
 * @param y The y coordinate of the pixel
 * @param grayscale_value The 4 bit grayscale value that the pixel will be drawn in
 */
@brief Draws a pixel into the pixel buffer THIS SHOULD BE CHANGED TO MATCH YOUR SETUP
@param x The x coordinate of the pixel
@param y The y coordinate of the pixel
@param grayscale_value The 4 bit grayscale value that the pixel will be drawn in
@brief Draws a pixel into the pixel buffer THIS SHOULD BE CHANGED TO MATCH YOUR SETUP @param x The x coordinate of the pixel @param y The y coordinate of the pixel @param grayscale_value The 4 bit grayscale value that the pixel will be drawn in
void Pixel(uint8_t x, uint8_t y, uint8_t grayscale_value) {
    if ((x >= width_) || (y >= height_)) {
        return;
    }
    uint16_t index = (x / 2) + (y * 64);
    if (x & 0b1) {  
        pixel_buffer.at(index) = (pixel_buffer.at(index) & 0xF0) | (grayscale_value);
    } else {  
        pixel_buffer.at(index) = (pixel_buffer.at(index) & 0x0F) | (grayscale_value << 4);
    }
}
void Pixel ( uint8_t x , uint8_t y , uint8_t grayscale_value ) { if ( ( x >= width_ ) || ( y >= height_ ) ) { return ; } uint16_t index = ( x / 2 ) + ( y * 64 ) ; if ( x & 0b1 ) { pixel_buffer . at ( index ) = ( pixel_buffer . at ( index ) & 0xF0 ) | ( grayscale_value ) ; } else { pixel_buffer . at ( index ) = ( pixel_buffer . at ( index ) & 0x0F ) | ( grayscale_value << 4 ) ; } }
@brief Draws a pixel into the pixel buffer THIS SHOULD BE CHANGED TO MATCH YOUR SETUP
 @param x The x coordinate of the pixel
 @param y The y coordinate of the pixel
 @param grayscale_value The 4 bit grayscale value that the pixel will be drawn in
@brief Draws a pixel into the pixel buffer THIS SHOULD BE CHANGED TO MATCH YOUR SETUP @param x The x coordinate of the pixel @param y The y coordinate of the pixel @param grayscale_value The 4 bit grayscale value that the pixel will be drawn in
// If this is an odd pixel, place it into the right side of the pixel pair // Put it in the left side