![]() |
CHGame 0.3.0
Libraries for the CHGame handheld
|
Arduino's Wire library (TwoWire), ported to WCH's chips: I2C master and slave on the CH32X035's I2C1. More...
#include <functional>#include "Stream.h"#include "Arduino.h"#include "utility/twi.h"Go to the source code of this file.
Classes | |
| class | TwoWire |
| An I2C bus: the Arduino Wire API on one of the chip's I2C peripherals (the global Wire on this board). More... | |
Macros | |
| #define | BUFFER_LENGTH 32 |
| The smallest size of the receive and transmit buffers, in bytes (they grow on the heap when a transfer needs more). | |
| #define | WIRE_MAX_TX_BUFF_LENGTH 1024U |
| The most bytes one transmission (beginTransmission() ... endTransmission()) can hold; write() returns 0 past it. | |
| #define | WIRE_HAS_END 1 |
| Defined to 1: this Wire has end(). | |
Variables | |
| TwoWire | Wire |
| The I2C bus: I2C1 on PC18 (SDA, header H1.2) and PC19 (SCL, H1.1). | |
Arduino's Wire library (TwoWire), ported to WCH's chips: I2C master and slave on the CH32X035's I2C1.