-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for the Sipeed Maix Amigo #92
Comments
Yup.. looking for Sipeed Maix Amigo support as well. Really no interest in their maixPy whatever. |
The schematic is here: I started working on the pin map for Maixduino based on it... but not super clear. #ifndef _VARIANT_BOARD_SIPEED_MAIX_AMIGO
#define _VARIANT_BOARD_SIPEED_MAIX_AMIGO
#include <stdint.h>
#define RISCV
#include "platform.h"
#include "Arduino.h"
#include "pwm.h"
#ifdef __cplusplus
#include "UARTClass.h"
extern class UARTHSClass Serial;
extern class UARTClass Serial1;
extern class UARTClass Serial2;
extern class UARTClass Serial3;
#endif
/* BOARD PIN DEFINE */
/* LEDs */
#define PIN_LED_GREEN 15
#define PIN_LED_BLUE 17
#define PIN_LED_RED 14
#define PIN_LED 32
#define LED_BUILTIN 32
#define LED_GREEN 15
#define LED_BLUE 17
#define LED_RED 14
/* KEY */
#define KEY0 9 // ? STM32
#define PIN_KEY_DOWN 20
#define PIN_KEY_UP 23
#define PIN_KEY_PRESS 9 // ? STM32
// NO IDEA ON THESE. Values from Maix Go
#if 0
/* MIC ARRAY */
#define MIC_BCK 18
#define MIC_WS 19
#define MIC_DAT3 20
#define MIC_DAT2 21
#define MIC_DAT1 22
#define MIC_DAT0 23
#define MIC_LED_DAT 24
/* SPI0 */
#define SPI0_CS1 25
#define SPI0_MISO 26
#define SPI0_SCLK 27
#define SPI0_MOSI 28
#define SPI0_CS0 29
/* I2S */
#define I2S_WS 33
#define I2S_DA 34
#define I2S_BCK 35
/* LCD */
#define LCD_CS 36
#define LCD_RST 37
#define LCD_DC 38
#define LCD_WR 39
#endif
// U2 UART
#define RX0 9
#define TX0 7
// U3 UART
#define RX1 25
#define TX1 22
// U1 UART (ISP)
#define RX2 4
#define TX2 5
#define SDA 27
#define SCL 24
#define MD_PIN_MAP(fpio) (fpio)
#define ORG_PIN_MAP(org_pin) (org_pin)
static const uint8_t SS = SPI0_CS0 ;
static const uint8_t MOSI = SPI0_MOSI;
static const uint8_t MISO = SPI0_MISO;
static const uint8_t SCK = SPI0_SCLK;
typedef struct _pwm_fpio_set_t{
pwm_channel_number_t channel;
pwm_device_number_t device;
uint8_t inuse;
}pwm_fpio_set_t;
#define VARIANT_NUM_GPIOHS (32)
#define VARIANT_NUM_GPIO ( 8)
#define VARIANT_NUM_PWM (12)
#define VARIANT_NUM_I2C ( 3)
#define VARIANT_NUM_SPI ( 3)
#define VARIANT_NUM_UART ( 3)
#endif |
With latest git snapshot, I got these errors trying to compile for Maix Amigo:
Please help |
su09-17-2023 ImportError: cannot import name MIC_ARRAY MAix Amigo (1.) Hi, there. (2.) Using MAixPy IDE, receiving error code for MAix Amigo: ImportError: cannot import name MIC_ARRAY (3.) MAix AMIGO (3a.) SP-MOD MicArray Module (3b.) Connector: 10P 0.5mm FPC (3c.) Sipeed MAix R6 + 1 Microphone Array Board (3d.) Located inside the back of the developer board #2970, moved the switch to M1N instead of STM.
(3e.) MAixPy IDE: Tools > Select Board > Sipeed Maixduino (3f.) Will only run the code for “helloworld.py”, although the LCD image orientation is misaligned, upside down; the picture is smaller than the LCD screen; but image has mostly clear resolution without any noticeable lag, latency, delay. (3g.) Receiving “ImportError: cannot import name MIC_ARRAY” ROUTINE Sound Source Localization https://wiki.sipeed.com/soft/maixpy/en/develop_kit_board/module_microphone.html andalsofor AirPocket Soundman’s Sound Localizer (3h.) Pin assignments used for MAix AMIGO LED_CLK_GPIOHS28…….23 LED_DAT_GPIOHS27…….20 DAT 0…………….......……12 DAT 1……………..…..…….…9 DAT 2………………..…...……31 DAT 3………….……..……...7 WS……………..…....…..……19 BCK_SCK……...…..…………17 (4.) Would you list the correct pin assignments for the: (4a.) MAix Amigo #2970 in the M1n position (4b.) MAix Amigo #2970 in the STM position (5.) Thanks. (6.) Toodles! |
Any support for the Sipeed Maix Amigo board?
The text was updated successfully, but these errors were encountered: