Skip to content
This repository has been archived by the owner on Dec 23, 2021. It is now read-only.

Commit

Permalink
fixed some comm error
Browse files Browse the repository at this point in the history
  • Loading branch information
andreamah committed Mar 20, 2020
1 parent 176f3e1 commit b1846f0
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
6 changes: 5 additions & 1 deletion src/base_circuitpython/neopixel_write.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
# original implementation docs for neopixel_write:
# https://circuitpython.readthedocs.io/en/5.0.x/shared-bindings/neopixel_write/__init__.html

import constants as CONSTANTS

import pathlib
import sys
import os

from common import utils
from adafruit_circuitplayground import cp
import base_cp_constants as CONSTANTS


def neopixel_write(gpio, buf):
Expand All @@ -30,6 +30,10 @@ def neopixel_write(gpio, buf):

def send_clue(buf):
sendable_json = {CONSTANTS.PIXELS: [tuple(buf)]}

# for now, just print pixels
print(sendable_json)

utils.send_to_simulator(sendable_json, CONSTANTS.CLUE)


Expand Down
2 changes: 1 addition & 1 deletion src/clue/adafruit_clue.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
abs_path = pathlib.Path(__file__).parent.absolute()
sys.path.insert(0, os.path.join(abs_path))
import neopixel
import constants as CONSTANTS
from base_circuitpython import base_cp_constants as CONSTANTS

# REVISED VERSION OF THE ADAFRUIT CLUE LIBRARY FOR DSX

Expand Down
1 change: 0 additions & 1 deletion src/clue/constants.py

This file was deleted.

4 changes: 2 additions & 2 deletions src/clue/test/constants.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
SCREEN_HEIGHT_WIDTH = 240
IMG_DIR_NAME = "img"
# SCREEN_HEIGHT_WIDTH = 240
# IMG_DIR_NAME = "img"

0 comments on commit b1846f0

Please sign in to comment.