Skip to content

Commit

Permalink
remove unfinished examples; black update
Browse files Browse the repository at this point in the history
  • Loading branch information
dhalbert committed Apr 19, 2020
1 parent d4ed374 commit b122846
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 149 deletions.
76 changes: 0 additions & 76 deletions adafruit_ble_adafruit/#tone_service.py#

This file was deleted.

1 change: 0 additions & 1 deletion adafruit_ble_adafruit/.#tone_service.py

This file was deleted.

1 change: 0 additions & 1 deletion adafruit_ble_adafruit/gyroscope_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@

from .adafruit_service import AdafruitService

**Software and Dependencies:**

class GyroscopeService(AdafruitService):
"""Gyroscope values."""
Expand Down
10 changes: 1 addition & 9 deletions adafruit_ble_adafruit/tone_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,13 @@

from .adafruit_service import AdafruitService

class _Tone(ComplexCharacteristic):
"""Characteristic written by client to change tone."""

uuid = AdafruitService.adafruit_service_uuid(0xC01)

def __init(self):
super().__init(properties=Characteristic.WRITE,
read_perm=Attribute.NO_ACCESS,)

class ToneService(AdafruitService):
"""Play tones."""

uuid = AdafruitService.adafruit_service_uuid(0xC00)
tone = StructCharacteristic(
"<HI",
"<HW",
uuid=AdafruitService.adafruit_service_uuid(0xC01),
properties=Characteristic.WRITE,
read_perm=Attribute.NO_ACCESS,
Expand Down
27 changes: 0 additions & 27 deletions examples/ble_adafruit_clue.py
Original file line number Diff line number Diff line change
@@ -1,27 +0,0 @@
# Bluefruit Playground server program, to run on CLUE

from adafruit_service import AdafruitServerAdvertisement

from adafruit_service.accelerometer_service import AccelerometerService
from adafruit_service.addressable_pixel_service import AddressablePixelService
from adafruit_service.barometric_pressure_service import BarometricPressureService
from adafruit_service.button_service import ButtonService
from adafruit_service.gyroscope_service import GyroscopeService
from adafruit_service.humidity_service import HumidityService
from adafruit_service.light_sensor_service import LightSensorService
from adafruit_service.magnetometer_service import MagnetometerService
from adafruit_service.temperature_service import TemperatureService

adv = BluefruitPlaygroundAdvertisement()
# Adafruit Circuit Playground Bluefruit USB PID:
adv.pid = 0x8046 *********** CHANGE

while True:
# Advertise when not connected.
ble.start_advertising(advertisement)
while not ble.connected:
pass
ble.stop_advertising()


while ble.connected:
34 changes: 0 additions & 34 deletions examples/ble_adafruit_simpletest.py
Original file line number Diff line number Diff line change
@@ -1,34 +0,0 @@
# For use on a Circuit Playground Bluefruit.
# Easily tested withe the Bluefruit Playground app.

# Act as a BLE peripheral. Provide all possible adafruit_services services.

import board
import neopixel
from adafruit_ble import BLERadio
from adafruit_ble.advertising.standard import ProvideServicesAdvertisement

class AdafruitService

def update():




def run():
ble = BLERadio()
advertisement = ProvideServicesAdvertisement(uart_server)

while True:
# Advertise when not connected.
ble.start_advertising(advertisement)
while not ble.connected:
pass
ble.stop_advertising()

while ble.connected:
update()
packet = Packet.from_stream(uart_server)
if isinstance(packet, ColorPacket):
print(packet.color)
pixels.fill(packet.color)
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
],

# What does your project relate to?
keywords="adafruit blinka circuitpython micropython circuitplayground bluefruit CLUE ble",
# You can just specify the packages manually here if your project is
Expand Down

0 comments on commit b122846

Please sign in to comment.