gitmodu / fastx9cxxx Goto Github PK
View Code? Open in Web Editor NEWArduino library for digital potentiometers X9C102, X9C103, X9C104 and X9C504
License: MIT License
Arduino library for digital potentiometers X9C102, X9C103, X9C104 and X9C504
License: MIT License
Hello. Thanks for a useful library. Could you please (a) confirm that it would work with more than one digital pot? (b) if yes, please add one more example on how to use them. Thanks in advance!
Arduino: 1.8.13 (Windows 10), Board: "WiFi LoRa 32(V2), Disabled, 240MHz (WiFi/BT), 921600, None, REGION_EU868, None"
WARNING: library FastX9CXXX-master claims to run on avr architecture(s) and may be incompatible with your current board which runs on esp32 architecture(s).
I like the simplicity of just sending the value i want and having the change happen, i would like use this, but I am a total noob at programing, so any help you are willing to give would be appreciated.
Hi!
running your example (RandomValue) I got the following error:
...Documents\Arduino\libraries\FastX9CXXX-master/FastX9CXXX.h:13:18: fatal error: Fast.h: No such file or directory
Is it my fault?
I am receiving the following error when attempting to compile an example in PlatformIO.
Here is the example sketch:
`#include <Arduino.h>
#include <FastX9CXXX.h>
/*
Example project to control a X9CXXX digital potentiometer
https://github.com/GitMoDu/FastX9CXXX
modified 30 Aug 2017
by MoDu
*/
#define X9_CS_PIN 3
#define X9_UD_PIN 4
#define X9_INC_PIN 5
FastX9CXXX Potentiometer;
void setup() {
Serial.begin(9600);
Serial.println();
Serial.print(F("X9C104 Digital Potentiometer setup..."));
randomSeed(analogRead(0));
//Potentiometer.Begin();
Potentiometer.Setup(X9_CS_PIN, X9_UD_PIN, X9_INC_PIN);
Serial.println(F(" complete."));
}
void loop() {
Potentiometer.JumpToStep(100);
Serial.print(F("Potentiometer current step: "));
Serial.print(Potentiometer.GetStep(), DEC);
Serial.println();
delay(1000); // wait for a second
}`
Here is the error being returned.
src/main.cpp:18:1: error: invalid use of template-name 'FastX9CXXX' without an argument list FastX9CXXX Potentiometer; ^~~~~~~~~~ src/main.cpp:18:1: note: class template argument deduction is only available with -std=c++1z or -std=gnu++1z In file included from src/main.cpp:12:0: lib/FastX9CXXX/src/FastX9CXXX.h:23:7: note: 'template<long unsigned int Resistance> class FastX9CXXX' declared here class FastX9CXXX ^~~~~~~~~~
Any help would be appreciated
Thanks, Mitch
Is there any known bug on JumpToStep? It makes my Arduino Leonardo freeze. Up() and Down() work fine.
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.