Closed mraugit closed 3 years ago
We let this issue go stale. I am able to control LEDs in the latest release, closing this issue. Comment back if you still have an issue.
@Wenn0101
I experience the same problem with V2.1.1
I solved it by changing Arduino15\packages\SparkFun\hardware\apollo3\2.1.1\variants\SFE_EDGE\config\pins.cpp
and adding the LED pins in variantPinStates[]
/*
// This file is subject to the terms and conditions defined in
// file 'LICENSE.md', which is part of this source code package.
*/
#include "bridge/pins.h"
const pin_size_t variantPinCount = 8;
PinState variantPinStates[variantPinCount] = {
{D1, 1, NULL, /*NULL, NULL, NULL,*/ NULL},
{D38, 38, NULL, /*NULL, NULL, NULL,*/ NULL},
{D36, 36, NULL, /*NULL, NULL, NULL,*/ NULL},
{D3, 3, NULL, /*NULL, NULL, NULL,*/ NULL},
{LED1, 46, NULL, /*NULL, NULL, NULL,*/ NULL},
{LED2, 37, NULL, /*NULL, NULL, NULL,*/ NULL},
{LED3, 44, NULL, /*NULL, NULL, NULL,*/ NULL},
{LED4, 47, NULL, /*NULL, NULL, NULL,*/ NULL},
};
@Wenn0101 And same for BUTTON1. I need to add it to the list, or else the button does not work.
Maybe my code is bad, but I followed the example codes.
Control of internal LEDs not possible with versions 2.0.x. With version 1.2.x the following example runs fine: Board: Sparkfun edge