add a quick LED helper / prepare SqueezeAMP menuconfig

This commit is contained in:
philippe44
2019-08-06 13:21:00 -07:00
parent 3c025c8454
commit da63df4d93
9 changed files with 213 additions and 23 deletions

View File

@@ -18,10 +18,21 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
#include "platform_esp32.h"
#include "led.h"
#ifdef CONFIG_SQUEEZEAMP
#define LED_GREEN_GPIO 12
#define LED_RED_GPIO 13
#else
#define LED_GREEN_GPIO 0
#define LED_RED_GPIO 0
#endif
void app_main()
{
led_config(LED_GREEN, LED_GREEN_GPIO, 0);
led_config(LED_RED, LED_RED_GPIO, 0);
console_start();
}