sdesalas / arduino-queue.h Goto Github PK
View Code? Open in Web Editor NEWGeneric C++ circular queue for Arduino embedded projects.
Generic C++ circular queue for Arduino embedded projects.
I encountered the following error message when trying to use the Queue.h library in the Arduino IDE coding for a ESP-32 developer board: error: 'Queue' does not name a type
The fix was to change
#ifndef QUEUE_H
#define QUEUE_H
to
#ifndef Queue_h
#define Queue_h
in the Queue.h file.
hi Sdesalas,
I tested your Queue on ATSAM3X8E,
and it worked correctly with (byte).
thank you very much.
Carlos.
some enviroment details...
PlatformIO
Arduino-ESP framework
board: ESP32-S2-Saola-1
When including this library into my platformIO project, the header's preprocessor guards conflict with the standard C queue library, causing me to get unexpected behavior from intellisence such as `Queue is not a templated class" (when it clearly is).
Changing it to QUEUE_H_2
fixed the issue, although this was just a placeholder name. I'm sure you can find a better name for it. Funny enough, I'd suggest changing it to something less generic simply because this is a third-party library and it seems to conflict with the arduino API and other ports of the arduino framework across some other boards.
Hi all,
I am trying to work with queues with this library.
The test code provided compiles fine if I select the board "Arduino Uno" but when I select the "ESP8266" board it gives the error "'Queue' does not name a type".
Is this library not compatible with the ESP8266?
Thanks,
Zeb
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.