---(QUESTION WAS ANSWERED, thanks)-----
I'm reading up on how to control the brightness of led's in a matrix...
but for now I'm having trouble with just one! Lots of examples have you sending a value of 0-255.
I'm using a really simple max patch. The problem is, the led's seem to just have two states: on or off, with nothing inbetween. I have a fader set up, and as soon as I go above about .5 or .51 the light just goes on. What am i doing wrong - it must be some dumb mistake?
here is my max patch
{
"patcher" : {
"fileversion" : 1,
"rect" : [ 263.0, 64.0, 1064.0, 622.0 ],
"bglocked" : 0,
"defrect" : [ 263.0, 64.0, 1064.0, 622.0 ],
"openrect" : [ 0.0, 0.0, 0.0, 0.0 ],
"openinpresentation" : 0,
"default_fontsize" : 12.0,
"default_fontface" : 0,
"default_fontname" : "Arial",
"gridonopen" : 0,
"gridsize" : [ 15.0, 15.0 ],
"gridsnaponopen" : 0,
"toolbarvisible" : 1,
"boxanimatetime" : 200,
"imprint" : 0,
"enablehscroll" : 1,
"enablevscroll" : 1,
"devicewidth" : 0.0,
"boxes" : [ {
"box" : {
"maxclass" : "comment",
"text" : "motor/pwm",
"fontsize" : 12.0,
"numinlets" : 1,
"id" : "obj-50",
"fontname" : "Arial",
"patching_rect" : [ 442.0, 325.0, 84.0, 20.0 ],
"numoutlets" : 0
}
}
, {
"box" : {
"maxclass" : "comment",
"text" : "pwm",
"fontsize" : 12.0,
"numinlets" : 1,
"id" : "obj-44",
"fontname" : "Arial",
"patching_rect" : [ 206.0, 254.0, 84.0, 20.0 ],
"numoutlets" : 0
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "t b l",
"outlettype" : [ "bang", "" ],
"fontsize" : 12.0,
"numinlets" : 1,
"id" : "obj-13",
"fontname" : "Arial",
"patching_rect" : [ 348.0, 413.0, 32.5, 20.0 ],
"numoutlets" : 2
}
}
, {
"box" : {
"maxclass" : "flonum",
"outlettype" : [ "float", "bang" ],
"fontsize" : 12.0,
"numinlets" : 1,
"id" : "obj-11",
"fontname" : "Arial",
"patching_rect" : [ 378.0, 278.0, 120.0, 20.0 ],
"numoutlets" : 2
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "pwm 13 $1",
"outlettype" : [ "" ],
"fontsize" : 12.0,
"numinlets" : 2,
"id" : "obj-4",
"fontname" : "Arial",
"patching_rect" : [ 378.0, 326.0, 69.0, 18.0 ],
"numoutlets" : 1
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "pinMode 13 3",
"outlettype" : [ "" ],
"fontsize" : 12.0,
"numinlets" : 2,
"id" : "obj-3",
"fontname" : "Arial",
"patching_rect" : [ 205.0, 280.0, 83.0, 18.0 ],
"numoutlets" : 1
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "port 0",
"outlettype" : [ "" ],
"fontsize" : 12.0,
"numinlets" : 2,
"id" : "obj-2",
"fontname" : "Arial",
"patching_rect" : [ 201.0, 312.0, 41.0, 18.0 ],
"numoutlets" : 1
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "arduino",
"outlettype" : [ "" ],
"fontsize" : 12.0,
"numinlets" : 1,
"id" : "obj-1",
"fontname" : "Arial",
"patching_rect" : [ 348.0, 445.0, 51.0, 20.0 ],
"numoutlets" : 1
}
}
],
"lines" : [ {
"patchline" : {
"source" : [ "obj-4", 0 ],
"destination" : [ "obj-13", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-11", 0 ],
"destination" : [ "obj-4", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-13", 0 ],
"destination" : [ "obj-1", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-13", 1 ],
"destination" : [ "obj-1", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-2", 0 ],
"destination" : [ "obj-13", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-3", 0 ],
"destination" : [ "obj-13", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
]
}
}