picofuse-objc

Instance Methods | Class Methods | List of all members
WaveshareEPaper97 Class Reference

Waveshare's 9.7inch e-Paper HAT, on a Raspberry Pi: a 1200x825 e-paper display in sixteen grays, with an IT8951 controller. More...

#import <Devices/Devices.h>

Inheritance diagram for WaveshareEPaper97:
Inheritance graph
[legend]
Collaboration diagram for WaveshareEPaper97:
Collaboration graph
[legend]

Instance Methods

(id) - initWithVCOM:rotation:partial:fast:
 Initializes the display, as +displayWithVCOM:rotation:partial:fast:.
 
- Instance Methods inherited from NXDisplay
(id) - initWithDisplay:
 Initializes it with its pix display, which it owns from then on. More...
 
(void) - deinitDisplay:
 Frees its pix display, when it's deallocated, with pix_display_deinit(). More...
 
(pix_display_t *) - display
 Returns its pix display.
 
(NXSize) - size
 Returns its size, in pixels.
 
(BOOL) - isEPaper
 Returns YES for e-paper, which keeps its picture, and is slow to change it: its partial refreshes may only draw black and white, so draw in those.
 
(id< NXDisplayDelegate >) - delegate
 Returns the delegate, which isn't retained.
 
(void) - setDelegate:
 Sets the delegate, which isn't retained, and draws all of it again.
 
(void) - setInterval:
 Sets the shortest time between redraws, from 1 ms: 0, the default, for as often as it changes and the device allows.
 
(void) - setNeedsDisplay
 Marks all of it as changed, so it's drawn again.
 
(void) - setNeedsDisplayInRect:
 Marks part of it as changed, so that's drawn again. More...
 
(BOOL) - isAttached
 Returns YES while it's attached to the application.
 
- Instance Methods inherited from NXObject
(void) - dealloc
 Frees the instance. More...
 
(NXZone *) - zone
 Returns the zone in which the instance was allocated. More...
 
(id) - retain
 Increases the retain count of the receiver. More...
 
(void) - release
 Decreases the retain count of the receiver. More...
 
(id) - autorelease
 Releases the receiver later, when the current autorelease pool of the thread is drained. More...
 
(id) - copy
 Returns a copy which can't be changed by anything else, which the caller owns and has to release. More...
 
(uintptr_t) - hash
 Returns a number for the object, which is the same for objects which are equal by isEqual:. More...
 
(NXString *) - description
 Returns a string which describes the instance, for logging. More...
 
- Instance Methods inherited from Object
(id) - init
 Initialize the instance, after allocation. More...
 
(Class) - class
 Returns the class of the instance. More...
 
(Class) - superclass
 Returns the superclass of the instance. More...
 
(BOOL) - isEqual:
 Compares the receiver to another object for equality. More...
 
(BOOL) - isKindOfClass:
 Returns a Boolean value that indicates whether the receiver is an instance of a given class. More...
 
(BOOL) - conformsTo:
 Checks if the receiver's class conforms to a protocol. More...
 
- Instance Methods inherited from <ObjectProtocol>
(BOOL) - respondsToSelector:
 Checks if the receiver responds to a selector. More...
 

Class Methods

(WaveshareEPaper97 *) + displayWithVCOM:
 Returns the display, with every refresh full, or nil if there's no SPI0 or its pins are in use, or the controller doesn't answer. More...
 
(WaveshareEPaper97 *) + displayWithVCOM:rotation:partial:fast:
 Returns the display, upside down if the rotation is 180, with partial refreshes. More...
 
- Class Methods inherited from NXObject
(id) + alloc
 Allocates a new instance in the default zone, or if there isn't one, with sys_calloc(). More...
 
(id) + allocWithZone:
 Allocates a new instance in a specific zone. More...
 
(id) + new
 Allocates and initializes a new instance, as [[cls alloc] init] does. More...
 
(NXString *) + description
 Returns the name of the class.
 
- Class Methods inherited from Object
(void) + initialize
 Performs one-time initialization for the class. More...
 
(Class) + class
 Returns the class object. More...
 
(Class) + superclass
 Returns the superclass of the class. More...
 
(const char *) + name
 Returns the name of the class. More...
 
(BOOL) + conformsTo:
 Checks if the class conforms to a protocol. More...
 

Additional Inherited Members

- Protected Attributes inherited from Object
Class isa
 A pointer to the object's class structure. More...
 

Detailed Description

Waveshare's 9.7inch e-Paper HAT, on a Raspberry Pi: a 1200x825 e-paper display in sixteen grays, with an IT8951 controller.

Its switch is on SPI, so it's on SPI0 with CE0, /dev/spidev0.0, with /RESET on GPIO17 and HRDY on GPIO24. The panel's VCOM is on its cable, such as -1.71V. A full refresh flashes, and takes about a second, and a partial one, of only what was redrawn, about half a second in grays, or a third in black and white. It isn't redrawn again until a refresh is done. Colors are the nearest of the sixteen grays to their brightness. It keeps its picture without power.

Definition at line 23 of file WaveshareEPaper97.h.

Method Documentation

◆ displayWithVCOM:()

+ (WaveshareEPaper97 *) displayWithVCOM: (uint16_t)  vcom

Returns the display, with every refresh full, or nil if there's no SPI0 or its pins are in use, or the controller doesn't answer.

Parameters
vcomThe panel's VCOM, in negative millivolts, as on its cable: -1.71V is 1710. 0 keeps the controller's own.

◆ displayWithVCOM:rotation:partial:fast:()

+ (WaveshareEPaper97 *) displayWithVCOM: (uint16_t)  vcom
rotation: (uint16_t)  rotation
partial: (uint8_t)  partial
fast: (BOOL)  fast 

Returns the display, upside down if the rotation is 180, with partial refreshes.

Parameters
vcomThe panel's VCOM, as for +displayWithVCOM:.
rotation0 or 180 degrees.
partialPartial refreshes between full ones, or 0 for every one to be full. The first is always full.
fastYES for partial refreshes in black and white, which are faster, rather than in grays.
Returns
The display, or nil, including for another rotation.

The documentation for this class was generated from the following file: