Code Monkey home page Code Monkey logo

Comments (3)

neophob avatar neophob commented on August 20, 2024

hey markus

I was asking myself some days ago, if the rainbowduino port still works - but that must be a yes.

Well I had a similar issue like you in the beginning - but I think there is no issue here. in the neorainbowduino i defined the i2c address as hexadecimal, while in the pixelcontroller config file the regular decimal address is requested.

So the easiest solution in this case would be, adding a comment like

#=========================
#settings for rainbowduino
#=========================
#i2c destination address + layout definition
#Hint: the rainbowduino define its i2c address in HEX while we need a DECIMAL address

what do you think`?

cheers and thanks

from pixelcontroller.

markuslang79 avatar markuslang79 commented on August 20, 2024

Hi,

With that hint it should be pretty clear that you have to configure the Rainbowduino IDs in decimal. I was just wondering if it was intendend to log the IDs in decimal instead on hex. For my example I would have expected that it would also print the hex value for e.g. my 0x11 id instead of the decimal value:

Sep 07, 2011 12:52:53 AM com.neophob.lib.rainbowduino.Rainbowduino sendFrame
INFO: Send data to device 17

Nevertheless I'd suggest to change the two occurrences of Integer.parseInt() in the parseI2cAddress() method to Integer.decode(s) which simply accepts both ways of defining the I2C IDs:

layout.row1.i2c.addr=0x11,0x12,0x13,0x14
layout.row2.i2c.addr=0x15,0x16,0x17,0x18
layout.row1.i2c.addr=17,18,19,20
layout.row2.i2c.addr=21,22,23,24

Greetings,
Markus

from pixelcontroller.

neophob avatar neophob commented on August 20, 2024

Thanks for the hint about Integer.decode(s) - I included it in the refactored properties code, thanks!

from pixelcontroller.

Related Issues (20)

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.