Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 21:23 26 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : E-paper module

Author Message
OA47

Guru

Joined: 11/04/2012
Location: Australia
Posts: 926
Posted: 05:52am 09 Jan 2024
Copy link to clipboard 
Print this post

Can someone remind me how I clear a 2.9 inch e-paper Module that has random pixels set on it. I have run Peters clock program and it works ok but it only clears the pixels that are part6 of the fonts.

0A47
 
OA47

Guru

Joined: 11/04/2012
Location: Australia
Posts: 926
Posted: 06:20am 09 Jan 2024
Copy link to clipboard 
Print this post

Worked it out. Got the brain cells to align.
> OPTION AUTOREFRESH ON
> FOR I= 1 TO 128: LINE I,1,I,296 : NEXT

0A47

Maybe premature victory. Even with BOX,1,1,128,296,,,FILL the screen is still grey in colour but running the clock program does leave the sections of the fonts as white.

Still may need some direction

Update:
FOR I=1 128:LINE I,1,I,296: PAUSE 100: NEXT
Seems to do the trick.
Edited 2024-01-09 16:38 by OA47
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2135
Posted: 06:36am 09 Jan 2024
Copy link to clipboard 
Print this post

Send this text to the screen on every line and see if it does anything.
"                                                       "


Footnote added 2024-01-09 16:41 by phil99
ie. all spaces.

Just wanted to see what the new "Footnote" does.

Footnote added 2024-01-09 16:45 by phil99
It lets you add stuff after the thread has moved on.
 
OA47

Guru

Joined: 11/04/2012
Location: Australia
Posts: 926
Posted: 06:39am 09 Jan 2024
Copy link to clipboard 
Print this post

Update:
FOR I=1 TO 128:LINE I,1,I,296: PAUSE 500: NEXT
Seems to do the trick.

0A47
Edited 2024-01-09 16:42 by OA47
 
OA47

Guru

Joined: 11/04/2012
Location: Australia
Posts: 926
Posted: 07:01am 09 Jan 2024
Copy link to clipboard 
Print this post

  Quote  Send this text to the screen on every line and see if it does anything.
"  
                                                    "
Thanks Phil, I am still getting a grey background when I run the code even though the clock program does have a black to white transition during execution.

0A47
 
OA47

Guru

Joined: 11/04/2012
Location: Australia
Posts: 926
Posted: 07:10am 09 Jan 2024
Copy link to clipboard 
Print this post

Here is the effect:



0A47
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1873
Posted: 07:26pm 09 Jan 2024
Copy link to clipboard 
Print this post

@ OA47 Can you point me to Peters E-Ink Clock, can't find it anywhere.
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
OA47

Guru

Joined: 11/04/2012
Location: Australia
Posts: 926
Posted: 09:02pm 09 Jan 2024
Copy link to clipboard 
Print this post

Palcal,

'MMbasic running on the NUCLEO-L432KC
Dim s$
 CLS
 Option autorefresh off
 Do
   If Time$<>s$ Then
     s$=Time$
     Text MM.HRes\2,MM.VRes\2,s$,CMU,8,1
     Box MM.HRes\2-8, 98,4,4,,1,1
     Box MM.HRes\2+4, 98,4,4,,1,1
     Box MM.HRes\2-8, 196,4,4,,1,1
     Box MM.HRes\2+4, 196,4,4,,1,1
     Refresh
     Print Date$,Time$
   EndIf
 Pause 5000
 Loop

' SevenSegNumFont.bas
' Font type    : Numeric (10 characters)
' Font size    : 32x50 pixels
' Memory usage : 2004 bytes
' Font downloaded from: http://www.rinkydinkelectronics.com/r_fonts.php
DefineFont #8
 0A303220 00000000 00000000 00FEFF00 00FFFF01 80FFFF03 60FFFF01 F0FEFF0C
 F801001E F801003F F801003F F801003F F801003F F801003F F801003F F801003F
 F801003F F801003F F801003F F801003F F801003F F801003F 7800003E 18000038
 08000020 00000000 00000020 18000038 7800003E F801003F F801003F F801003F
 F801003F F801003F F801003F F801003F F801003F F801003F F801003F F801003F
 F801003F F801003F F801003F F000001E 60FEFF0C 00FFFF01 80FFFF03 00FFFF01
 00FEFF00 00000000 00000000 00000000 00000000 00000000 00000000 00000000
 60000000 F0000000 F8010000 F8010000 F8010000 F8010000 F8010000 F8010000
 F8010000 F8010000 F8010000 F8010000 F8010000 F8010000 F8010000 F8010000
 78000000 18000000 08000000 00000000 00000000 18000000 78000000 F8010000
 F8010000 F8010000 F8010000 F8010000 F8010000 F8010000 F8010000 F8010000
 F8010000 F8010000 F8010000 F8010000 F8010000 F0000000 60000000 00000000
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00FEFF00
 00FFFF01 80FFFF03 60FFFF01 F0FEFF00 F8010000 F8010000 F8010000 F8010000
 F8010000 F8010000 F8010000 F8010000 F8010000 F8010000 F8010000 F8010000
 F8010000 F8010000 78000000 18FEFF01 88FFFF03 E0FFFF0F C0FFFF27 00FFFF39
 0000003E 0000003F 0000003F 0000003F 0000003F 0000003F 0000003F 0000003F
 0000003F 0000003F 0000003F 0000003F 0000003F 0000003F 0000003F 0000001E
 00FEFF0C 00FFFF01 80FFFF03 00FFFF01 00FEFF00 00000000 00000000 00000000
 00000000 00FEFF00 00FFFF01 80FFFF03 60FFFF01 F0FEFF00 F8010000 F8010000
 F8010000 F8010000 F8010000 F8010000 F8010000 F8010000 F8010000 F8010000
 F8010000 F8010000 F8010000 F8010000 78000000 18FEFF01 88FFFF03 E0FFFF0F
 C0FFFF07 18FFFF01 78000000 F8010000 F8010000 F8010000 F8010000 F8010000
 F8010000 F8010000 F8010000 F8010000 F8010000 F8010000 F8010000 F8010000
 F8010000 F0000000 60FEFF00 00FFFF01 80FFFF03 00FFFF01 00FEFF00 00000000
 00000000 00000000 00000000 00000000 00000000 00000000 60000000 F000000C
 F801001E F801003F F801003F F801003F F801003F F801003F F801003F F801003F
 F801003F F801003F F801003F F801003F F801003F F801003F 7800003E 18FEFF39
 88FFFF23 E0FFFF0F C0FFFF07 18FFFF01 78000000 F8010000 F8010000 F8010000
 F8010000 F8010000 F8010000 F8010000 F8010000 F8010000 F8010000 F8010000
 F8010000 F8010000 F8010000 F0000000 60000000 00000000 00000000 00000000
 00000000 00000000 00000000 00000000 00000000 00FEFF00 00FFFF01 80FFFF03
 00FFFF01 00FEFF0C 0000001E 0000003F 0000003F 0000003F 0000003F 0000003F
 0000003F 0000003F 0000003F 0000003F 0000003F 0000003F 0000003F 0000003F
 0000003E 00FEFF39 80FFFF23 E0FFFF0F C0FFFF07 18FFFF01 78000000 F8010000
 F8010000 F8010000 F8010000 F8010000 F8010000 F8010000 F8010000 F8010000
 F8010000 F8010000 F8010000 F8010000 F8010000 F0000000 60FEFF00 00FFFF01
 80FFFF03 00FFFF01 00FEFF00 00000000 00000000 00000000 00000000 00FEFF00
 00FFFF01 80FFFF03 00FFFF01 00FEFF0C 0000001E 0000003F 0000003F 0000003F
 0000003F 0000003F 0000003F 0000003F 0000003F 0000003F 0000003F 0000003F
 0000003F 0000003F 0000003E 00FEFF39 80FFFF23 E0FFFF0F C0FFFF27 18FFFF39
 7800003E F801003F F801003F F801003F F801003F F801003F F801003F F801003F
 F801003F F801003F F801003F F801003F F801003F F801003F F801003F F000001E
 60FEFF0C 00FFFF01 80FFFF03 00FFFF01 00FEFF00 00000000 00000000 00000000
 00000000 00FEFF00 00FFFF01 80FFFF03 60FFFF01 F0FEFF00 F8010000 F8010000
 F8010000 F8010000 F8010000 F8010000 F8010000 F8010000 F8010000 F8010000
 F8010000 F8010000 F8010000 F8010000 78000000 18000000 08000000 00000000
 00000000 18000000 78000000 F8010000 F8010000 F8010000 F8010000 F8010000
 F8010000 F8010000 F8010000 F8010000 F8010000 F8010000 F8010000 F8010000
 F8010000 F0000000 60000000 00000000 00000000 00000000 00000000 00000000
 00000000 00000000 00000000 00FEFF00 00FFFF01 80FFFF03 60FFFF01 F0FEFF0C
 F801001E F801003F F801003F F801003F F801003F F801003F F801003F F801003F
 F801003F F801003F F801003F F801003F F801003F F801003F 7800003E 18FEFF39
 88FFFF23 E0FFFF0F C0FFFF27 18FFFF39 7800003E F801003F F801003F F801003F
 F801003F F801003F F801003F F801003F F801003F F801003F F801003F F801003F
 F801003F F801003F F801003F F000001E 60FEFF0C 00FFFF01 80FFFF03 00FFFF01
 00FEFF00 00000000 00000000 00000000 00000000 00FEFF00 00FFFF01 80FFFF03
 60FFFF01 F0FEFF0C F801001E F801003F F801003F F801003F F801003F F801003F
 F801003F F801003F F801003F F801003F F801003F F801003F F801003F F801003F
 7800003E 18FEFF39 88FFFF23 E0FFFF0F C0FFFF07 18FFFF01 78000000 F8010000
 F8010000 F8010000 F8010000 F8010000 F8010000 F8010000 F8010000 F8010000
 F8010000 F8010000 F8010000 F8010000 F8010000 F0000000 60FEFF00 00FFFF01
 80FFFF03 00FFFF01 00FEFF00 00000000 00000000
End DefineFont
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1873
Posted: 09:31pm 09 Jan 2024
Copy link to clipboard 
Print this post

Thanks for that but was it in a thread by Matherp? you stated...
  Quote   I have run Peters clock program and it works ok

I would like to read what Peter said.
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
OA47

Guru

Joined: 11/04/2012
Location: Australia
Posts: 926
Posted: 09:50pm 09 Jan 2024
Copy link to clipboard 
Print this post

Palcal, I have done a search on Nucleo-l432kc and e-paper and came up with nothing, looked thru the threads around that time and I cannot find the original post.

0A47
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6098
Posted: 09:57pm 09 Jan 2024
Copy link to clipboard 
Print this post

https://www.thebackshed.com/forum/ViewTopic.php?TID=10206&PID=114733#114733#114733

I think this is the one to start with.
e-ink not e-paper.

Jim
Edited 2024-01-10 07:58 by TassyJim
VK7JH
MMedit   MMBasic Help
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1873
Posted: 10:24pm 09 Jan 2024
Copy link to clipboard 
Print this post

Thanks Jim I've got that one but like OA47 can't find anything on a E-Ink clock.
I'm in the process of making a file with all the threads I am interested in so I can find them easily.
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2135
Posted: 10:58pm 09 Jan 2024
Copy link to clipboard 
Print this post

This bit of that link may be relevant to OA47's issue, the last sentence in particular.
  Quote  The displays are S.....L.....O.....W

A screen refresh on the 2.9" display takes just less than 3 seconds and somewhat over 5 seconds on the 2.7" display (note this is not significantly affected by the Basic code - re-writing in C wouldn't help). Also the displays flash from a normal image to an inverted one and back to a normal one as they refresh.
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024