picofuse-objc

PimoroniDisplayPack.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 {
17 
30 @interface PimoroniDisplayPack : NXDisplay <NXDisplayDevice, NXInputDevice> {
31 @private
32  void *_pack;
33  id _target;
34  SEL _selector;
35  void *_hid;
36  BOOL _buttons;
37 }
38 
44 
49 + (PimoroniDisplayPack *)displayPackWithRotation:(uint16_t)rotation;
50 
56 + (PimoroniDisplayPack *)displayPackWithSize:(PimoroniDisplayPackSize)size
57  rotation:(uint16_t)rotation;
58 
62 - (id)initWithRotation:(uint16_t)rotation;
63 
67 - (id)initWithSize:(PimoroniDisplayPackSize)size rotation:(uint16_t)rotation;
68 
73 - (NXLight *)light;
74 
79 - (NXLight *)backlight;
80 
87 - (BOOL)setTarget:(id)target selector:(SEL)selector;
88 
89 @end
An LED, or a chain of NeoPixels, which is turned on and off, dimmed, colored, or blinked.
Definition: NXLight.h:40
Defines the NXDisplay class, what every display shares, and NXApplication&#39;s methods for attaching one...
NXSize size()
Returns its size, in pixels.
The 2.8", 240x320.
The 1.14", 135x240.
PimoroniDisplayPack * displayPack()
Returns the 1.14" pack, in landscape, 240x135, or nil if it isn&#39;t a Pico, or its pins are in use...
Defines NXDeviceManager, which makes the devices a program&#39;s built for, as they&#39;re described in JSON...
bool BOOL
A Boolean value.
Definition: runtime.h:60
NXLight * backlight()
Returns its backlight, which can be dimmed, or turned off.
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
PimoroniDisplayPackSize
The sizes of Pico Display Pack.
NXLight * light()
Returns its RGB LED, which can be colored and dimmed.
Pimoroni&#39;s Pico Display Pack, 1.14" or 2.8", on a Pico: a 135x240 or 240x320 color display...