mirror of
https://github.com/espruino/Espruino.git
synced 2025-12-08 19:06:15 +00:00
Added support for neopixel to esp32 branch Changes to be committed: modified: Makefile modified: libs/neopixel/jswrap_neopixel.c new file: targets/esp32/esp32_neopixel.c new file: targets/esp32/esp32_neopixel.h
24 lines
843 B
C
24 lines
843 B
C
/*
|
|
* This file is part of Espruino, a JavaScript interpreter for Microcontrollers
|
|
*
|
|
* Copyright (C) 2015 Gordon Williams <gw@pur3.co.uk>
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
*
|
|
* ----------------------------------------------------------------------------
|
|
* This file is designed to be parsed during the build process
|
|
*
|
|
* Contains neopixel (WS2812B) specific function definitions.
|
|
* ----------------------------------------------------------------------------
|
|
*/
|
|
#ifndef ESP32_NEOPIXEL_H_
|
|
#define ESP32_NEOPIXEL_H_
|
|
#include "jspin.h"
|
|
|
|
//===== neopixel Library
|
|
|
|
bool esp32_neopixelWrite(Pin pin,unsigned char *rgbData, size_t rgbSize);
|
|
|
|
#endif /* ESP32_NEOPIXEL_H_ */ |