Category : lcd

I’m trying to make some code in Arduino that turns on an RGB LED and loading bar LCD display whenever my ultrasonic sensor detects an object within the distance threshold that I set, and that turns off when the object exits the distance threshold. Now the first part works; the display and LED activate whenever ..

Read more

I have been learning the make program. I wanna to program LCD by the AtMega8 and compile it with the Makefile. I wrote this basic code: #ifndef __AVR_ATmega8__ #define __AVR_ATmega8__ #endif #define F_CPU 8000000UL #include <avr/io.h> #include <util/delay.h> #include "hd44780.h" int main(void) { lcd_init(); lcd_clrscr(); lcd_puts("Hello World"); while (1); return 0; } And I wrote ..

Read more

I try to understand how this LCD library implements printf. When I read SLCD.h I see SLCD class inherits absract Stream class and implements virtual function putc. In mbed library in Stream.h I see printf is defined as follows: int printf(const char *format, …) MBED_PRINTF_METHOD(1, 2); And I find MBED_PRINTF_METHOD in mbed_toolchain.h. #define MBED_PRINTF(format_idx, first_param_idx) ..

Read more

here i am trying to print a temperature on an LCD disply: LCD_display_float(tempC,1); where tempC comes from the code: float tempC (unsigned int adc_value) { multiplier = adc_value/1023.0f; return -40 * multiplier *90; } however i am presented with the error: error: passing ‘float (unsigned int)’ to parameter of incompatible type ‘float’ Source: Windows Questions ..

Read more

I’m currently working on a project that I want to display a "Setting", an angle, and symbol (up arrow, down arrow and check mark) at the same time (the value of the angle will change and when the value is in a certain threshold, the symbol will change). We have managed to get the "setting ..

Read more