Hello every body,
I have an adafruit MO adalogger and a oled 128x64 LCD.
I am using the Adafruit_SSD1306 adafruit library and all work fine.
I can print and empty the screen with display.clearDisplay().
However, I would like to display the number of drop which toggle my bucket of the rain gauge.
The problem 2 is print over the 1, and 3 over the 2 and the 1, and so one.
Before printing a new value I should clear 1 to 3 position as I can have one drop to 353 drop, and not all the screen.
Is there a workaround to clear a specific position with setCursor(y,x)?
or would have a solution to print a scare with the same color of the screen over the number before printing the new value?
I do not think that the second solution is the good but it should have a solution to clear some position only and not all the screen, isn't?
Thank a lot
Cheers
How to empty some position to have a counter for a rain gaug
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- pierrot10
- Posts: 349
- Joined: Tue Nov 17, 2015 4:34 pm
- kcl1s
- Posts: 1512
- Joined: Tue Aug 30, 2016 12:06 pm
Re: How to empty some position to have a counter for a rain
I like to convert it to a char string. The example in this post works for float as well as int values. viewtopic.php?f=8&t=137887&start=15#p683466 It also right justifies the output.
Fellow Hobbyist
Keith
Fellow Hobbyist
Keith
Please be positive and constructive with your questions and comments.