picofuse-objc

PimoroniInkyPack.h
Go to the documentation of this file.
1 
5 #pragma once
6 #include <Graphics/NXDisplay.h>
7 #include "NXDeviceManager.h"
8 
13 typedef enum {
19 
34 @interface PimoroniInkyPack : NXDisplay <NXDisplayDevice, NXInputDevice> {
35 @private
36  void *_pack;
37  id _target;
38  SEL _selector;
39  void *_hid;
40  BOOL _buttons;
41 }
42 
47 
52 + (PimoroniInkyPack *)inkyPackWithRotation:(uint16_t)rotation;
53 
63 + (PimoroniInkyPack *)inkyPackWithRotation:(uint16_t)rotation
64  speed:(PimoroniInkyPackSpeed)speed
65  partial:(uint8_t)partial;
66 
70 - (id)initWithRotation:(uint16_t)rotation;
71 
75 - (id)initWithRotation:(uint16_t)rotation
76  speed:(PimoroniInkyPackSpeed)speed
77  partial:(uint8_t)partial;
78 
85 - (BOOL)setTarget:(id)target selector:(SEL)selector;
86 
87 @end
Defines the NXDisplay class, what every display shares, and NXApplication&#39;s methods for attaching one...
PimoroniInkyPackSpeed
How fast an Inky Pack refreshes: faster leaves a little more of what was there.
Defines NXDeviceManager, which makes the devices a program&#39;s built for, as they&#39;re described in JSON...
About a quarter of a second.
bool BOOL
A Boolean value.
Definition: runtime.h:60
PimoroniInkyPack * inkyPack()
Returns the pack, or nil if it isn&#39;t a Pico, or its pins are in use.
Pimoroni&#39;s Pico Inky Pack, on a Pico: a 296x128 black and white e-ink display.
const struct objc_selector * SEL
A pointer to a method selector.
Definition: runtime.h:23
A display, which the application redraws when it has changed, while it&#39;s attached with -[NXApplicatio...
Definition: NXDisplay.h:56
struct objc_object * id
A pointer to an instance of a class.
Definition: runtime.h:18
The controller&#39;s own, about 4.5 seconds.