Skip to content

Commit

Permalink
Full B1.6 Support :)
Browse files Browse the repository at this point in the history
  • Loading branch information
atc1441 committed Oct 23, 2021
1 parent 383b500 commit d987873
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ATC_Thermometer/lcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ void init_lcd(){
lcd_version = 0;
i2c_address_lcd = 0x78;
}else if(test_i2c_device(0x3E)){// B1.9
lcd_version = 2;
lcd_version = 0;//later 2
i2c_address_lcd = 0x7C;
}else{// B1.6 uses UART and is not testable this way
lcd_version = 1;
Expand Down Expand Up @@ -64,6 +64,10 @@ void uart_send_lcd(uint8_t byte1, uint8_t byte2, uint8_t byte3, uint8_t byte4, u
for(unsigned char i=0;i<13;i++){
uart_ndma_send_byte(trans_buff[i]);
}
while(uart_tx_is_busy())
{
sleep_us(10);
};
}

void send_to_lcd_long(uint8_t byte1, uint8_t byte2, uint8_t byte3, uint8_t byte4, uint8_t byte5, uint8_t byte6){
Expand Down

0 comments on commit d987873

Please sign in to comment.