adameat / maximwire Goto Github PK
View Code? Open in Web Editor NEWMaximWire library for Arduino 33 BLE and DS18B20 sensor
MaximWire library for Arduino 33 BLE and DS18B20 sensor
I get an error when I try to compile the AnyDevice example
Arduino: 1.8.15 (Windows 10), Board: "Arduino Nano 33 BLE"
libraries\MaximWire\HAL\NRF52840.cpp.o: In function MaximWire::HAL_NRF52840::HAL_NRF52840(unsigned char)': C:\Users\lukas\Documents\Arduino\libraries\MaximWire\src\HAL/NRF52840.cpp:9: undefined reference to
digitalPinToPinName(unsigned char)'
collect2.exe: error: ld returned 1 exit status
exit status 1
Fehler beim Kompilieren für das Board Arduino Nano 33 BLE.
I see the datasheet of 18b20, Parasite power needs another gpio and an transister to pull up bus strongly less than 10us after send commnad of temperature convertion or writing internel eeprom to provide power, does your lib support it?
Hello, I’m a high school student and a complete noob when it comes to Arduino.
I’m trying to connect a single DS18B20 probe with the Nano 33 BLE using this guide and it won’t work.
From googling, it seems the OneWire library is incompatible with the Nano 33 BLE?
How do I use the MaximWire library instead? I’ve tried looking at the examples but I can’t really understand it.
Hello
Im trying to use this on a Nano and got this error. Please ignore the rest of the code as Im trying to interface the Arduino with a NodeMCU
Arduino\libraries\MaximWire\src\HAL\NRF52840.cpp:2:10: fatal error: nrf_gpio.h: No such file or directory
#include <nrf_gpio.h>
^~~~~~~~~~~~
compilation terminated.
exit status 1
Error compiling for board Arduino Nano.
Here is my code:
`
#include <Wire.h>
#include <Servo.h>
#include <stdlib.h>
#include <MaximWire.h>
#define PIN_BUS 2
MaximWire::Bus bus(PIN_BUS);
MaximWire::DS18B20 poolTemp;
Servo myServo;
int SERVOM = A0;
int ONEBUS = 2;
void setup() {
Wire.begin(8); /* join i2c bus with address 8 /
Wire.onReceive(receiveEvent); / register receive event /
Wire.onRequest(requestEvent); / register request event /
Serial.begin(115200); / start serial for debug */
myServo.attach(SERVOM);
myServo.write(0);
}
void loop() {
poolTemp.requestTemperatures();
float temperatureC = poolTemp.getTempCByIndex(0);
float temperatureF = poolTemp.getTempFByIndex(0);
Serial.print("Temperature: ");
Serial.print(temperatureC);
Serial.print("ºC ");
Serial.print(temperatureF);
Serial.println("ºF");
delay(1000);
}
char inVal[10];
// function that executes whenever data is received from master
void receiveEvent(int howMany) {
int i = 0;
while (0 <Wire.available()) {
char c = Wire.read(); /* receive byte as a character /
Serial.print(c); / print the character /
inVal[i] = c;
inVal[i+1] = '\0';
i++;
}
int sv = atoi(inVal);
myServo.write(sv);
Serial.println(); / to newline */
Serial.print("Received:");
Serial.print(inVal);
Serial.println("]");
}
// function that executes whenever data is requested from master
void requestEvent() {
Wire.write("Hello NodeMCU"); /*send string on request */
}
`
Hi!
I have copied your DS18B20.h file and made a library DS2438.h with basic read commands.
Would you be interested in adding this .h file to this project?
FYI im knew to github and open source, so i dont know much about how this works.
New full library with DS2438.h, some examples and updated readme.md:
Every time i want to compile any of your examples I get an error message.
Arduino\libraries\MaximWire\src\HAL\NRF52840.cpp:2:10: fatal error: nrf_gpio.h: No such file or directory
#include <nrf_gpio.h>
^~~~~~~~~~~~
compilation terminated.
exit status 1
Compilation error: exit status 1
I really want to use your Library and I dont know how i can solve this problem
I was hoping to use this library to get my temp probe working, but I'm getting a compiler error. Any help is appreciated.
sketch/nano_probe_temp_sensor.ino.cpp.o: In function _GLOBAL__sub_I__ZN9MaximWire7DS18B2014GetTemperatureIsEET_RNS_3BusE: /sketchbooks/libraries/MaximWire/src/HAL/NRF52840.h:40: undefined reference to digitalPinToPinName(unsigned char) collect2: error: ld returned 1 exit status exit status 1 Error compiling for board Arduino Nano 33 BLE.
The code is identical to your AnyDevice.ino file except I'm using pin 2.
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.