Skip to content

Convert to BusDevice #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 14, 2019
Merged

Convert to BusDevice #9

merged 2 commits into from
Oct 14, 2019

Conversation

caternuson
Copy link
Contributor

For #8

dac_test

Basic check:

Adafruit CircuitPython 4.1.0 on 2019-08-02; Adafruit ItsyBitsy M4 Express with samd51g19
>>> import board
>>> import adafruit_mcp4725
>>> dac = dac = adafruit_mcp4725.MCP4725(board.I2C())
>>> dac.value = 0
>>> dac.value
0
>>> dac.value = 65000
>>> dac.value
64992
>>> 

More fun check:

import time
import math
import board
import adafruit_mcp4725

dac = adafruit_mcp4725.MCP4725(board.I2C())

theta = 0
dt = math.pi / 100

while True:
    dac.value = int(32767 * (1 + math.sin(theta)))
    theta += dt
    time.sleep(0.01)

DS1Z_QuickPrint1

@ladyada
Copy link
Member

ladyada commented Oct 14, 2019

nice n ez, needs mock i think?

@ladyada ladyada merged commit 9d781b0 into adafruit:master Oct 14, 2019
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Oct 15, 2019
Updating https://github.com/adafruit/Adafruit_CircuitPython_ESP32SPI to 3.0.2 from 3.0.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_ESP32SPI#79 from brentru/check-pem-begin-statement

Updating https://github.com/adafruit/Adafruit_CircuitPython_MCP4725 to 1.2.0 from 1.1.2:
  > Merge pull request adafruit/Adafruit_CircuitPython_MCP4725#9 from caternuson/iss8_busdevice

Updating https://github.com/adafruit/Adafruit_CircuitPython_Pixie to 1.1.5 from 1.1.3:
  > Merge pull request adafruit/Adafruit_CircuitPython_Pixie#12 from kattni/example-update
  > Merge pull request adafruit/Adafruit_CircuitPython_Pixie#11 from kattni/add-pyserial

Updating https://github.com/adafruit/Adafruit_CircuitPython_RGB_Display to 3.5.3 from 3.5.2:
  > Merge pull request adafruit/Adafruit_CircuitPython_RGB_Display#41 from makermelissa/master

Updating https://github.com/adafruit/Adafruit_CircuitPython_AWS_IOT to 1.0.1 from 1.0.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_AWS_IOT#2 from brentru/fix-esp32spi-method-names

Updating https://github.com/adafruit/Adafruit_CircuitPython_turtle to 1.1.1 from 1.1.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_turtle#12 from caternuson/disp_fix

Updating https://github.com/adafruit/Adafruit_CircuitPython_Bundle/circuitpython_library_list.md to NA from NA:
  > Added the following libraries: Adafruit_CircuitPython_LSM303_Accel, Adafruit_CircuitPython_LSM303AGR_Mag, Adafruit_CircuitPython_LSM303DLH_Mag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants