Skip to content

Commit

Permalink
Update examples to use ulab.numpy
Browse files Browse the repository at this point in the history
  • Loading branch information
dhalbert committed Dec 30, 2021
1 parent b8edc0e commit 136ea09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/ble_adafruit_clue.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import neopixel_write
from adafruit_ble import BLERadio

import ulab
from ulab import numpy as np

from adafruit_clue import clue

Expand Down Expand Up @@ -61,7 +61,7 @@
mic_svc.number_of_channels = 1
mic_svc.measurement_period = 100
mic_last_update = 0
mic_samples = ulab.zeros(MIC_NUM_SAMPLES, dtype=ulab.uint16)
mic_samples = np.zeros(MIC_NUM_SAMPLES, dtype=np.uint16)

temp_svc = TemperatureService()
temp_svc.measurement_period = 100
Expand Down
4 changes: 2 additions & 2 deletions examples/ble_adafruit_feather_bluefruit_sense.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import digitalio
import neopixel_write

import ulab
from ulab import numpy as np

from adafruit_ble import BLERadio

Expand Down Expand Up @@ -87,7 +87,7 @@
mic_svc.number_of_channels = 1
mic_svc.measurement_period = 100
mic_last_update = 0
mic_samples = ulab.zeros(MIC_NUM_SAMPLES, dtype=ulab.uint16)
mic_samples = np.zeros(MIC_NUM_SAMPLES, dtype=np.uint16)

temp_svc = TemperatureService()
temp_svc.measurement_period = 100
Expand Down

0 comments on commit 136ea09

Please sign in to comment.