Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Search found 204 matches
www.mcselec.com Forum Index
Author Message
  Topic: Waveshare 4.2" E-paper display
Per Svensson

Replies: 13
Views: 521

PostForum: BASCOM-AVR   Posted: Thu Feb 25, 2021 3:22 pm   Subject: Waveshare 4.2" E-paper display
Some further experiment reveals that:

Color codes when writing to pixel buffers 1 and 2:
'Dash mean that we skip writing to this register
' |-------------- Buffer 1 (B/W control)
' | ...
  Topic: Waveshare 4.2" E-paper display
Per Svensson

Replies: 13
Views: 521

PostForum: BASCOM-AVR   Posted: Wed Feb 24, 2021 10:24 pm   Subject: Waveshare 4.2" E-paper display
After some testing of register combinations I can conclude the following logic:
The two buffers are bit-wise compared and the resulting color are

|-------------- Buffer 1 (B/W control)
| |----- ...
  Topic: Waveshare 4.2" E-paper display
Per Svensson

Replies: 13
Views: 521

PostForum: BASCOM-AVR   Posted: Wed Feb 24, 2021 5:52 pm   Subject: Waveshare 4.2" E-paper display
By some experimenting with filling the two buffers I get the following colors

|-------------- Buffer 1 (B/W control)
| |----------- Buffer 2 (RED contol)
| | COLOR
FF FF = Black
F ...
  Topic: Waveshare 4.2" E-paper display
Per Svensson

Replies: 13
Views: 521

PostForum: BASCOM-AVR   Posted: Wed Feb 24, 2021 4:05 pm   Subject: Waveshare 4.2" E-paper display
Thanks SZTRAD

The GxEPD2 certainly have addressed this problem and are suggesting some interesting tweaks. I have to read it further...

And MWS!
Yes you certainly have a point there when you r ...
  Topic: Waveshare 4.2" E-paper display
Per Svensson

Replies: 13
Views: 521

PostForum: BASCOM-AVR   Posted: Wed Feb 24, 2021 2:16 pm   Subject: Waveshare 4.2" E-paper display
Tanks for these insights MWS

One could get away with just one 15 KB buffer end let display operate in only B/W mode.
This could sometimes be acceptable, but also 15kB is a bit too much for most A ...
  Topic: Waveshare 4.2" E-paper display
Per Svensson

Replies: 13
Views: 521

PostForum: BASCOM-AVR   Posted: Wed Feb 24, 2021 11:23 am   Subject: Waveshare 4.2" E-paper display
Now, much of the initial problems I reported are resolved.

However, there is one thing I cannot wrap my head around.
Display data is always written byte by byte so when setting a certain pixel, on ...
  Topic: Waveshare 4.2" E-paper display
Per Svensson

Replies: 13
Views: 521

PostForum: BASCOM-AVR   Posted: Tue Feb 23, 2021 3:36 pm   Subject: Waveshare 4.2" E-paper display
Hi

I happened to get two E.-paper displays from Waveshare. One small B/W 2.9" and one bigger B/W/R 4.2"
I also found the excellent work on a lib for the B/W 2.9" display written by Mrshilov
why ...
  Topic: Moving Average code for Bascom and a Windows simulator
Per Svensson

Replies: 7
Views: 474

PostForum: Share your working BASCOM-AVR code here   Posted: Wed Feb 17, 2021 3:33 pm   Subject: Moving Average code for Bascom and a Windows simulator
Yes it works pretty much like you describe.
The standard way would have been to capture a certain (N) number of inputs and calculate the arithmetic mean. Then discarding the oldest each time a ned da ...
  Topic: Do we want an Xmega based Arduino board?
Per Svensson

Replies: 12
Views: 519

PostForum: AVR   Posted: Wed Feb 17, 2021 2:37 pm   Subject: Do we want an Xmega based Arduino board?
As there are so few reactions to this suggestion I think I'd better drop the subject.
There would be technical issues to tackle but these compromises could have been discussed along the way.
Now it ...
  Topic: Moving Average code for Bascom and a Windows simulator
Per Svensson

Replies: 7
Views: 474

PostForum: Share your working BASCOM-AVR code here   Posted: Wed Feb 17, 2021 11:55 am   Subject: Moving Average code for Bascom and a Windows simulator
I forgot to mention that the two test examples runs nicely in the internal Bascom simulator.
Just compile and type F2 to execute it
  Topic: Moving Average code for Bascom and a Windows simulator
Per Svensson

Replies: 7
Views: 474

PostForum: Share your working BASCOM-AVR code here   Posted: Wed Feb 17, 2021 11:53 am   Subject: Moving Average code for Bascom and a Windows simulator
Ok Mark,

Here comes two test examples and an update of the include file (to cover some print formatting that I use)
RunAvg.bas is for integer data
RunAvg_sing.bas is for single float data

I h ...
  Topic: Moving Average code for Bascom and a Windows simulator
Per Svensson

Replies: 7
Views: 474

PostForum: Share your working BASCOM-AVR code here   Posted: Tue Feb 16, 2021 12:38 pm   Subject: Moving Average code for Bascom and a Windows simulator
Many years ago I wrote a Bascom filter for moving average of integer data. Mostly used to smoothing noisy sensor data.
It is probably one of the most useful routines I have ever written, as I use it ...
  Topic: Do we want an Xmega based Arduino board?
Per Svensson

Replies: 12
Views: 519

PostForum: AVR   Posted: Thu Feb 11, 2021 7:45 pm   Subject: Do we want an Xmega based Arduino board?
Mark A is right!
"I think Per proposed an Xmega board usable with BASCOM-AVR and with the arduino shields."
The idea is NOT to provide hardware for "Sketch programmers". It is to provide powerful ha ...
  Topic: Do we want an Xmega based Arduino board?
Per Svensson

Replies: 12
Views: 519

PostForum: AVR   Posted: Wed Feb 10, 2021 11:58 pm   Subject: Do we want an Xmega based Arduino board?
Hi,

The Arduino HW boards UNO and Mega2560 are very popular among DIY's and some of these are using Bascom to program them. Fair enough!
There are also hundreds of "shields" available to expand th ...
  Topic: HMC5883L and QMC5883L (3 axis compass)
Per Svensson

Replies: 9
Views: 3193

PostForum: Share your working BASCOM-AVR code here   Posted: Sun Feb 07, 2021 10:58 pm   Subject: HMC5883L and QMC5883L (3 axis compass)
Hi Enniom,

Your suggested use of Excel for Bascom math expression evaluation is quite clever I must say.
However, when expressions become very complex even typing them the Bascom way is so tedious ...
 
Page 1 of 14 Goto page 1, 2, 3 ... 12, 13, 14  Next
All times are GMT + 1 Hour
Jump to: