Giter VIP home page Giter VIP logo

magx's People

Contributors

danielhe2000 avatar dychen24 avatar luoqing0110 avatar qutesaltyfish avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

simonwzm w20583

magx's Issues

issue with compiling with Adafruit_MLX90393.cpp

Hi ,@dychen24, thanks for sharing this awsome work:-)
As you can see, we build the PCB board and we want to make it work ,when we fllowed the instruction of the web:
https://learn.adafruit.com/bluefruit-nrf52-feather-learning-guide/arduino-bsp-setup
and we replaced the liabary of Adafruit_MLX90393(version2.0.0) with your Codes it seems when we compiled with this staff ,it come out with the fllowing errors : can you help with us :-) ,hava a nice day :-)

image

Arduino: 1.8.19 (Linux), Board: "Adafruit Feather nRF52832, S132 6.1.1, Level 0 (Release), Serial"
/home/gaofei/Arduino/libraries/Adafruit_MLX90393/Adafruit_MLX90393.cpp: In member function 'bool Adafruit_MLX90393::writeRegister(uint8_t, uint16_t)':
/home/gaofei/Arduino/libraries/Adafruit_MLX90393/Adafruit_MLX90393.cpp:392:25: warning: narrowing conversion of '(((int)data) >> 8)' from 'int' to 'uint8_t' {aka 'unsigned char'} [-Wnarrowing]
392 | data >> 8, // high byte
| ~~~~~^~~~
/home/gaofei/Arduino/libraries/Adafruit_MLX90393/Adafruit_MLX90393.cpp:393:25: warning: narrowing conversion of '(int)(((short unsigned int)((int)data)) & 255)' from 'int' to 'uint8_t' {aka 'unsigned char'} [-Wnarrowing]
393 | data & 0xFF, // low byte
| ~~~~~^~~~~~
/home/gaofei/Arduino/libraries/Adafruit_MLX90393/Adafruit_MLX90393.cpp:394:24: warning: narrowing conversion of '(((int)reg) << 2)' from 'int' to 'uint8_t' {aka 'unsigned char'} [-Wnarrowing]
394 | reg << 2}; // the register itself, shift up by 2 bits!
| ~~~~^~~~
/home/gaofei/Arduino/libraries/Adafruit_MLX90393/Adafruit_MLX90393.cpp: In member function 'bool Adafruit_MLX90393::readRegister(uint8_t, uint16_t*)':
/home/gaofei/Arduino/libraries/Adafruit_MLX90393/Adafruit_MLX90393.cpp:402:24: warning: narrowing conversion of '(((int)reg) << 2)' from 'int' to 'uint8_t' {aka 'unsigned char'} [-Wnarrowing]
402 | reg << 2}; // the register itself, shift up by 2 bits!
| ~~~~^~~~
/home/gaofei/Arduino/libraries/Adafruit_MLX90393/Adafruit_MLX90393.cpp: In member function 'mlx90393_resolution Adafruit_MLX90393::getResolution(mlx90393_axis)':
/home/gaofei/Arduino/libraries/Adafruit_MLX90393/Adafruit_MLX90393.cpp:235:1: error: control reaches end of non-void function [-Werror=return-type]
235 | }
| ^
cc1plus: some warnings being treated as errors
exit status 1
Error compiling for board Adafruit Feather nRF52832.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

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.