In a case where a request to stop displaying the two-dimensional code has not been provided in S604 and the predetermined time period has elapsed in S605, the processing proceeds to S606. In S606, the CPU 101 switches the setting value of the refresh rate of the display device 20, on which the two-dimensional code is being displayed, to the third refresh rate R3 for displaying a code. Since it is assumed that the reading by the user is not normally performed, the CPU 101 switches to the third refresh rate R3, which has a higher rate than the second refresh rate R2. The subsequent processes of S607 to S609 and S610 to S611 are the same as the processes of S504 to S506 and S507 to S508 of
As explained above, according to the present embodiment, in a case where it is assumed that reading is not normally performed even at a refresh rate for displaying a code, the refresh rate is temporarily switched for displaying the two-dimensional code. In this way, it is possible to improve the readability of the two-dimensional code. Furthermore, since the refresh rate is temporarily switched for displaying the two-dimensional code, it is possible to suppress the effect of increase in the power consumption.