Skip to main content

Site Navigation

Your Account

Choose Language

Anything programming related to the Hexbright

34 Questions View all

Documenation or API for specifics to hexbright?

So looking at the demo code you see commands like

digitalWrite and analogWrite(DPIN_DRV_EN, 255);

Where is the API docs? I have never programmed a Arduino before, I found the reference for the language, etc. But where is stuff like this defined?

DPIN_RLED_SW

DPIN_GLED

What libraries can be used with the hexbright, the intro to programming guide tells you how to get the software, connect your hexbright and compile and upload your code. But could not really find where to get started in learning what I can do in the code?

Answer this question I have this problem too

Is this a good question?

Score 0
Add a comment

2 Answers

Most Helpful Answer

The DPIN_RLED_SW and DPIN_GLED stuff are constants defined at the beginning of each program. Basically, they are just more human friendly names for pins on the board (as far as I can tell). There is nothing more complicated to it than that. DPIN I'm assuming means digital pin, while APIN stands for analog pin. RLED is the red switch LED, GLED is the green LED under the switch (same location as the RLED). Whenever a function calls for a pin as a parameter, the authors of the code have chosen to use the constants they've defined because they're much easier to understand when you try to make sense of the code later on. for DPI_RLED_SW, you could just as easily use 2. For DPIN_GLED, you could just as easily use 5.

Arduino.cc has a pretty good guide on the programming. check: http://arduino.cc/en/Tutorial/HomePage

Was this answer helpful?

Score 1
Add a comment

I volunteered to write such a library and a howto guide for getting started with programming the Hexbright. Unfortunately, I don't have a hexbright in my hands yet, so it's a little difficult to do that so far.

There are a few really good hints out there, though - specifically, the hexbright4.ino file in the code repository on github, which contains most things, including how to check whether the light is overheating. I would recommend starting there, and learning some basic C++, since that's the language you'll be writing in.

Was this answer helpful?

Score 0
Add a comment

Add your answer

john Poznicek will be eternally grateful.
View Statistics:

Past 24 Hours: 0

Past 7 Days: 0

Past 30 Days: 0

All Time: 441