Import error: no module named 'pyb'

Hi, I’m going to use the pyb module

The previous person purchased two of these equipment and installed them on PC1 and PC2, respectively.

However, the module that works on PC1 does not work as shown in the picture below on PC2.

The code used is the same.
They say they don’t have a pyb module, is there a way to install this separately?

Hi, the RT1062 doesn’t have the PYB module. You need the H7 Plus.

The PYB module only works on STM32 boards.

then… how can i edit code…?( classes and function)

It was worked PC1(same spec, same machine).

‘import pyb’ is for using pin, RTC class,
reset machine using function ‘pyb.hard_reset()’.

i want use these classes(pin, RTC), functions(hard_reset()).

Hi, you can find similar functions to most things in pyb here: machine — functions related to the hardware — MicroPython 1.24 documentation

However, if you want to avoid changing the code I would recommend buying an H7 Plus unit.