Skip to content

Make AddressChanger interactive #31

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Xayton
Copy link
Contributor

@Xayton Xayton commented Apr 27, 2025

The address change is now interactive: you can scan the I2C bus and change the address of each modifiable modulino.
All of this can be repeated without having to recompile the sketch and upload it to the board.

This is an example of output provided by the sketch on the serial:

ADDR	MODULINO	PINSTRAP	DEFAULT ADDR
0x1E    Buzzer          0x3C            0x1E        
0x36    Smartleds       0x6C            0x36        
0x37    Smartleds       0x6C            0x36 *      
0x38    Smartleds       0x6C            0x36 *      
0x3C    Encoder         0x74            0x3A *      
0x3E    Buttons         0x7C            0x3E        
0x50    Smartleds       0x6C            0x36 *      
0x66    Buttons         0x7C            0x3E *      
0x77    Smartleds       0x6C            0x36 *      
Enter the current address, space, and new address (ex. "0x20 0x30" or "20 2A"):
  - Enter "<addr> 0" to reset the device at <addr> to its default address.
  - Enter "0 0" to reset all devices to the default address.
  • devices are recognized either by their (fixed) address or by sending a message and reading the pinstrap result
  • for each device it will also show if the current address has been changed from the default
  • allows to reset the address of a device (or all of them) to the default, by setting the requested address to zero

@Xayton Xayton requested a review from Rocketct April 27, 2025 20:03
@facchinm facchinm force-pushed the interactive-address-changer branch from 37ee89a to 409e6b3 Compare April 28, 2025 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant