Falling at the first hurdle

38 views
Skip to first unread message

Clive Eisen

unread,
May 24, 2021, 1:46:38 PM5/24/21
to HiPi Perl
I have a working waveshare pi hat Waveshare 2.13 inch black, white ( 250 x 122 with partial update)
The sample C from waveshare works fine
HiPi is all installed and gives no errors
A tiny test program runs but does nothing (nor does any other sample I try)

#!/usr/bin/env perl
use HiPi qw( :epaper :rpi );
use HiPi::Interface::EPaper;
my $epd = HiPi::Interface::EPaper->new(
    type       => EPD_WS_2_13_250_X_122_A,
);

$epd->draw_logo;
$epd->display_update;

Anyone know what I'm doing wrong?

Mark Dootson

unread,
May 24, 2021, 2:13:34 PM5/24/21
to hipi...@googlegroups.com
Hi,

Your script works OK for me - but my 2.13 inch black, white ( 250 x 122
with partial update) is several years old now.

I seem to recall that the Waveshare examples use the bcm2835 library and
there are some compatibility issues using the SPI functions in that
library and the kernel SPI device driver that HiPi uses.

I think you have to use one or the other.
Reboot the pi and try the script without running the Waveshare example
on the machine.
It should work

Let me know if it doesn't

Clive Eisen

unread,
May 28, 2021, 2:13:37 AM5/28/21
to HiPi Perl
Hi Mark,

Thank you for the swift response.

Sadly, no that does not work.

It runs - no errors as I said - and no changes or flashing on the screen even after a clean boot.

Is there any debugging I can do…..?

Kind regards,

Clive Eisen

unread,
May 28, 2021, 5:35:55 AM5/28/21
to Mark Dootson, hipi...@googlegroups.com
Hi Mark,

Thank you for the swift response.

Sadly, no that does not work.

It runs - no errors as I said - and no changes or flashing on the screen even after a clean boot.

Is there any debugging I can do…..?

Kind regards,


C
> --
> You received this message because you are subscribed to a topic in the Google Groups "HiPi Perl" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/hipi-perl/-L6qoA_kMQo/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to hipi-perl+...@googlegroups.com.
> To view this discussion on the web, visit https://groups.google.com/d/msgid/hipi-perl/b4bfb877-f7ae-ed85-9f04-e28dc982d401%40znix.com.

Mark Dootson

unread,
Jun 10, 2021, 9:13:21 AM6/10/21
to Clive Eisen, HiPi Perl

Hi,

I'd guess you have a V2  2.13 display. As noted in the Waveshare docs V2 uses a different controller so the HiPi code written for the V1 controller does not work.

I'll take a look at what the differences are.

Mark

--
You received this message because you are subscribed to the Google Groups "HiPi Perl" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hipi-perl+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/hipi-perl/2e97e387-3beb-4c6c-bf79-8987c9455a86n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages