The only pinout difference between the pro mini and the pro micro is that there's a reset pin on the mini pro thaht's ground on the micro pro.
However, whiley that means either will fit my PCB, there may still be some pin mapping differences.
And the mini pro has TTL serial instead of USB, so it needs an external FTDI adapter or similar.
Fresh Arduinos have arrived from China. Yet another variant(??). Definitely more pin mapping differences than just the extra Reset pin.
The silkscreen says "Arduino Pro Micro", it identifies as a Arduino Leonardo in device manager under windoze.
See attached picture. Note that the 3 pins to the right of pin 10 have different numbering compared to the Pro Mini picture I posted earlier.
Selecting model "Arduino Leonardo" does not lead to a working AR488 however. Compiles fine, talks to EZPGPIB, does not work other than that.
So...what I think I need is this adapted pin mapping:
/*******************************/
/***** AR488 CUSTOM LAYOUT *****/
/***** vvvvvvvvvvvvvvvvvvv *****/
#ifdef AR488_CUSTOM
#define DIO1 3 /* GPIB 1 : PORTD bit 0 data pins assigned for minimum shifting */
#define DIO2 15 /* GPIB 2 : PORTB bit 1 */
#define DIO3 16 /* GPIB 3 : PORTB bit 2 */
#define DIO4 14 /* GPIB 4 : PORTB bit 3 */
#define DIO5 8 /* GPIB 13 : PORTB bit 4 */
#define DIO6 9 /* GPIB 14 : PORTB bit 5 */
#define DIO7 10 /* GPIB 15 : PORTB bit 6 */
#define DIO8 6 /* GPIB 16 : PORTD bit 7 */
#define IFC 4 /* GPIB 9 : PORTD bit 4 */
#define NDAC A3 /* GPIB 8 : PORTF bit 4 fast control pins assigned to same port */
#define NRFD A2 /* GPIB 7 : PORTF bit 5 */
#define DAV A1 /* GPIB 6 : PORTF bit 6 */
#define EOI A0 /* GPIB 5 : PORTF bit 7 */
#define REN 5 /* GPIB 17 : PORTC bit 6 */
#define SRQ 7 /* GPIB 10 : PORTE bit 6 */
#define ATN 2 /* GPIB 11 : PORTD bit 1 */
#endifUnfortunately selecting a custom layout by #define AR488_CUSTOM results in a compile error for the serial port
Like so:
215:46: error: cannot convert 'Serial_*' to 'HardwareSerial*' in initialization
HardwareSerial *arSerial = &(AR_SERIAL_PORT);So.. basically I am confused? The
Wilko
(wandering in a maze full of Arduinos, #define's and #ifdefs, all alike)