This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Some define in i0_cfg.h in nRFready Desktop 2 keyboard part

#define IO_CHERRY8x16_ROW_PORT 0x13E02040UL #define IO_CHERRY8x16_COLUMN_PORT 0x60031FBFUL

Why this number be defined like this ? What are this two things use for?

If I what custom made mine own keyboard should I change this number?

Parents
  • Hi,

    That is the IO mask that the rows and columns are connected to the GPIO port. Each bit place indicates what GPIOs it is connected to externally. You can see how it's used in drv_keyboard_cherry8x16.c file.

    If you make your own custom board, you will have to find which rows and columns goes to which GPIO on the nRF, and then map up the buttons manually.

    Best regards Håkon

Reply
  • Hi,

    That is the IO mask that the rows and columns are connected to the GPIO port. Each bit place indicates what GPIOs it is connected to externally. You can see how it's used in drv_keyboard_cherry8x16.c file.

    If you make your own custom board, you will have to find which rows and columns goes to which GPIO on the nRF, and then map up the buttons manually.

    Best regards Håkon

Children
No Data
Related