picofuse-objc

PimoroniPresto.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 {
18 
39 @interface PimoroniPresto : NXDisplay <NXDisplayDevice, NXInputDevice> {
40 @private
41  void *_presto;
42  id _target;
43  SEL _selector;
44  void *_hid;
45  void *_device;
46 }
47 
53 
58 + (PimoroniPresto *)prestoWithSize:(uint16_t)size
59  rotation:(uint16_t)rotation
60  clock:(PimoroniPrestoClock)clock;
61 
65 - (id)initWithSize:(uint16_t)size rotation:(uint16_t)rotation clock:(PimoroniPrestoClock)clock;
66 
71 - (NXLight *)backlight;
72 
81 - (BOOL)setTarget:(id)target selector:(SEL)selector;
82 
83 @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.
NXLight * backlight()
Returns its backlight, which can be dimmed, or turned off.
PimoroniPresto * presto()
Returns the Presto, 240x240 and upright, at the system clock as it is, or nil if it isn&#39;t a Presto...
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
PimoroniPrestoClock
The system clock a Presto sets as it starts.
200 MHz, faster than its rating, for more frames a second
Pimoroni&#39;s Presto: a 480x480 color display, as 240x240 doubled, in SRAM, or 480x480, in two framebuffers in PSRAM which swap, so it doesn&#39;t tear, and its touchscreen.
const struct objc_selector * SEL
A pointer to a method selector.
Definition: runtime.h:23
150 MHz, the RP2350&#39;s rating
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