Skip to content

Commit

Permalink
fix set_pixel_rgb
Browse files Browse the repository at this point in the history
colour was off ;-)

tested on hardware (AtomS3Lite)
  • Loading branch information
petermm committed Nov 8, 2023
1 parent 75fd269 commit 90eae2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/neopixel.erl
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ handle_call(clear, _From, State) ->
handle_call(refresh, _From, State) ->
{reply, ?MODULE:nif_refresh(State#state.nif_handle, maps:get(timeout, State#state.options)), State};
handle_call({set_pixel_rgb, I, R, G, B}, _From, State) ->
{reply, ?MODULE:nif_set_pixel_hsv(State#state.nif_handle, I, R, G, B), State};
{reply, ?MODULE:nif_set_pixel_rgb(State#state.nif_handle, I, R, G, B), State};
handle_call({set_pixel_hsv, I, H, S, V}, _From, State) ->
{reply, ?MODULE:nif_set_pixel_hsv(State#state.nif_handle, I, H, S, V), State};
handle_call(Request, _From, State) ->
Expand Down

0 comments on commit 90eae2e

Please sign in to comment.