Coder Social home page Coder Social logo

Comments (5)

ladyada avatar ladyada commented on August 29, 2024

call show()

void seesaw_NeoPixel::show(void) {

from adafruit_seesaw.

mic159 avatar mic159 commented on August 29, 2024

@ladyada the show() function only sends the SEESAW_NEOPIXEL_SHOW command to the NeoTrellis/Seesaw, but the buffer on the NeoTrellis/Seesaw still has the original pixel data, so the LEDs stay lit up as they were.

this->writeEmpty(SEESAW_NEOPIXEL_BASE, SEESAW_NEOPIXEL_SHOW);

Simple reproduce case:

#include "Adafruit_NeoTrellis.h"

Adafruit_NeoTrellis pad;

void setup() {
  pad.begin();
}

void loop() {
  pad.pixels.setPixelColor(0, 255, 0, 0);
  pad.pixels.setPixelColor(15, 255, 0, 0);
  pad.pixels.show();
  delay(1000);
  pad.pixels.clear();
  pad.pixels.show();
  delay(1000);
}

This should blink the pixels, but it just stays solid.

from adafruit_seesaw.

ladyada avatar ladyada commented on August 29, 2024

ooooooooooooooh - yeah thats a bug. sorry no fix at this time because the firmware is pre-burned :( you have to write to each pixel!

from adafruit_seesaw.

ladyada avatar ladyada commented on August 29, 2024

wanna try adding a
this->write(SEESAW_NEOPIXEL_BASE, SEESAW_NEOPIXEL_BUF, writeBuf, len + 2 );
type call after the memset in clear()? that should then send that data buffer off, may need adjustment for variable names n such - i dont have a seesaw on hand right now to test

like... https://learn.adafruit.com/adafruit-seesaw-atsamd09-breakout/neopixel#buf-0x04-32-bytes-write-only-12-3

from adafruit_seesaw.

mic159 avatar mic159 commented on August 29, 2024

@ladyada yes, it looks like we can use SEESAW_NEOPIXEL_BUF a few times to clear the buffer on the remote end. Unfortunately the buffer is larger than the 32 byte maximum of TwoWire, so it has to be called in a loop.

Check #21

from adafruit_seesaw.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.