- Processing
- p5.js
- Processing.py
- Processing for Android
- Processing for Pi

- Processing Foundation

This reference is for Processing 3.0+. If you have a previous version, use the reference included with your software in the Help menu. If you see any errors or have suggestions, please let us know. If you prefer a more technical reference, visit the Processing Core Javadoc and Libraries Javadoc.

Class | I2C
Name | ### endTransmission()
Examples |
    import processing.io.*;
    I2C dac;

    void setup() {
      //printArray(I2C.list());
      dac = new I2C(I2C.list()[0]);
    }

    void draw() {
      background(map(mouseX, 0, width, 0, 255));

      // send value over I2C to a digital-to-analog
      // converter with address 96 (hex 0x60)
      int val = int(4095 * map(mouseX, 0, width, 0.0, 1.0));
      dac.beginTransmission(0x60);
      dac.write(val >> 8);
      dac.write(val & 255);
      dac.endTransmission();
    }
Description | Ends the current transmissions This executes any queued writes. Read() implicitly ends the current transmission as well, hence calling endTransmission() afterwards is not necessary.
Syntax |
    .endTransmission()
Returns | void

Updated on July 4, 2018 11:56:46am EDT