randyrossi / bmc64

A bare metal Commodore 64 emulator for the Raspberry Pi with true 50hz/60hz smooth scrolling, low input latency and better audio/video sync.
GNU General Public License v3.0
473 stars 56 forks source link

settings.txt missing #192

Closed huskeyw closed 2 years ago

huskeyw commented 2 years ago

I can not find where to set GPIO to config #2. in the documentation it says its in settings.txt but this file is not in the build..

WebbedQuasar commented 2 years ago

I can not find where to set GPIO to config #2. in the documentation it says its in settings.txt but this file is not in the build..

There is absolutely no need to change the settings.txt. You can set GPIO #2 in the main menu under GPIO.

The settings.txt should be on the root of the SD card, but I never had to change anything.

huskeyw commented 2 years ago

its not in the latest build, and to set up for use with the BMC64 motherboard, I can plug in a usb keyboard and make the setting per computer, but I cant find where it saves that setting.. and its not the settings.txt as its not on there even after saving the setting..

now to get joysticks to work.. so far no joy..

randyrossi commented 2 years ago

It doesn't get created until the first save happens from the emulator. If you need to set gpio before the first run, you can just create a file called settings.txt in the root of the sdcard and add the line you need.

On Tue, Oct 12, 2021 at 7:31 PM huskeyw @.***> wrote:

its not in the latest build, and to set up for use with the BMC64 motherboard, I can plug in a usb keyboard and make the setting per computer, but I cant find where it saves that setting.. and its not the settings.txt as its not on there even after saving the setting..

now to get joysticks to work.. so far no joy..

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/randyrossi/bmc64/issues/192#issuecomment-941743055, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAI3HKGBWNSB2WB35U7Q5OTUGTAOXANCNFSM5F3YCSEA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

-- Randy Rossi

huskeyw commented 2 years ago

ok so I added that and it failed to recognize the C64 keyboard.. removed it and used a usb keyboard to configure.. and it saved the following.. but in this it says gpio_config=1, which I thought it should say 2 as I am using the BMC64 PCB..

also if I set the joysticks to anything the keyboard is wierd.. like O = Q..

port_1=3 port_2=4 port_3=0 port_4=0 usb_0=0 usb_x_0=0 usb_y_0=1 usb_x_t_0=50 usb_y_t_0=50 usb_1=0 usb_x_1=0 usb_y_1=1 usb_x_t_1=50 usb_y_t_1=50 usb_2=0 usb_x_2=0 usb_y_2=1 usb_x_t_2=50 usb_y_t_2=50 usb_3=0 usb_x_3=0 usb_y_3=1 usb_x_t_3=50 usb_y_t_3=50 palette=1 usb_btn_0=1 usb_btn_0=0 usb_btn_0=0 usb_btn_0=0 usb_btn_0=0 usb_btn_0=0 usb_btn_0=0 usb_btn_0=0 usb_btn_0=0 usb_btn_0=0 usb_btn_0=0 usb_btn_0=0 usb_btn_0=0 usb_btn_0=0 usb_btn_0=0 usb_btn_0=0 usb_btn_1=1 usb_btn_1=0 usb_btn_1=0 usb_btn_1=0 usb_btn_1=0 usb_btn_1=0 usb_btn_1=0 usb_btn_1=0 usb_btn_1=0 usb_btn_1=0 usb_btn_1=0 usb_btn_1=0 usb_btn_1=0 usb_btn_1=0 usb_btn_1=0 usb_btn_1=0 usb_btn_2=1 usb_btn_2=0 usb_btn_2=0 usb_btn_2=0 usb_btn_2=0 usb_btn_2=0 usb_btn_2=0 usb_btn_2=0 usb_btn_2=0 usb_btn_2=0 usb_btn_2=0 usb_btn_2=0 usb_btn_2=0 usb_btn_2=0 usb_btn_2=0 usb_btn_2=0 usb_btn_3=1 usb_btn_3=0 usb_btn_3=0 usb_btn_3=0 usb_btn_3=0 usb_btn_3=0 usb_btn_3=0 usb_btn_3=0 usb_btn_3=0 usb_btn_3=0 usb_btn_3=0 usb_btn_3=0 usb_btn_3=0 usb_btn_3=0 usb_btn_3=0 usb_btn_3=0 hotkey_cf1=0 hotkey_cf3=0 hotkey_cf5=0 hotkey_cf7=1 hotkey_tf1=0 hotkey_tf3=0 hotkey_tf5=0 hotkey_tf7=1 overlay=0 overlay_padding=0 vkbd_trans=0 tapereset=1 reset_confirm=1 scaling_interp=1 gpio_config=1 h_center_0=0 v_center_0=0 h_border_0=32 v_border_0=20 h_stretch_0=1600 v_stretch_0=1000 drive_type_8=1542 drive_type_9=0 drive_type_10=0 drive_type_11=0 pot_x_high=192 pot_x_low=64 pot_y_high=192 pot_y_low=64 keyset_1_up=0 keyset_1_down=0 keyset_1_left=0 keyset_1_right=0 keyset_1_fire=0 keyset_1_potx=0 keyset_1_poty=0 keyset_2_up=0 keyset_2_down=0 keyset_2_left=0 keyset_2_right=0 keyset_2_fire=0 keyset_2_potx=0 keyset_2_poty=0 key_binding_1=0 key_binding_2=0 key_binding_3=0 key_binding_4=0 key_binding_5=0 key_binding_6=0 volume=100 dir_convention=0 use_int_scaling_0=1 custom_gpio=0,0 custom_gpio=1,0 custom_gpio=2,0 custom_gpio=3,0 custom_gpio=4,0 custom_gpio=5,0 custom_gpio=6,0 custom_gpio=7,0 custom_gpio=8,0 custom_gpio=9,0 custom_gpio=10,0 custom_gpio=11,0 custom_gpio=12,0 custom_gpio=13,0 custom_gpio=14,0 custom_gpio=15,0 custom_gpio=16,0 custom_gpio=17,0 custom_gpio=18,0 s_curvature=0 s_curvature_x=10 s_curvature_y=15 s_sharper=0 s_mask=0 s_mask_brightness=70 s_scanlines=1 s_multisample=1 s_scanline_weight=60 s_scanline_gap_brightness=12 s_bloom_factor=150 s_gamma=2 s_input_gamma=240 s_output_gamma=220

huskeyw commented 2 years ago

well, if I use a USB keyboard I can set it in the config for the BMC64

I can't get joysticks to work on the vic20 (only up, right, and fire work) on the c64 its hit or miss.. some games no issues.. other not at all and sometimes if I enable the joysticks gpio1 and gpio2 the keyboard does not work correctly..

randyrossi commented 2 years ago

Please see https://github.com/randyrossi/bmc64#gpio-configurations. The configurations are 0 indexed. Not sure about the joysticks. Who made the PCB?

On Tue, Oct 12, 2021 at 8:45 PM huskeyw @.***> wrote:

well, if I use a USB keyboard I can set it in the config for the BMC64

I can't get joysticks to work on the vic20 (only up, right, and fire work) on the c64 its hit or miss.. some games no issues.. other not at all and sometimes if I enable the joysticks gpio1 and gpio2 the keyboard does not work correctly..

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/randyrossi/bmc64/issues/192#issuecomment-941803183, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAI3HKACVPEINYSY6MOEZP3UGTJA3ANCNFSM5F3YCSEA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

-- Randy Rossi

huskeyw commented 2 years ago

so in the documentation for the settings it should say 1 not set to 2, so config 2 is gpio_config=1? from the DOC "If you are installing BMC64 for the first time and need a GPIO config other than 1 and don't have a USB keyboard to change the option, you will have to manually edit settiongs.txt and ensure a line with 'gpio_config=[0-2]' exists."

now to be fair ... in the next line it says 1 but that is way confusing to the first.. .. anyways that works now.. thank you

PCB is from https://www.pcbway.com/project/shareproject/BMC64_Keyboard_Joystick_PCB.html ill break out a meter and make sure the joysticks are working and going to the right gpio ports.. but I should only have to enable the gpio1 and gpio 2 under joysticks?

I assume these are the correct ones..

26 | 6 (J2_FIRE) | KBD20 20 | 1 (J2_UP) | KBD19 19 | 2 (J2_DOWN) | KBD18 16 | 3 (J2_LEFT) | KBD17 13 | 4 (J2_RIGHT) | KBD16

22 | 6 (J1_FIRE) | KBD9 23 | 1 (J1_UP) | KBD8 27 | 2 (J1_DOWN) | KBD7 17 | 3 (J1_LEFT) | KBD6 18 | 4 (J1_RIGHT) | KBD5

huskeyw commented 2 years ago

so I would mark this as solved. if you create a settings.txt file with gpio_config=1 (and like for each system type settings-vic20 ect. then the BMC64 PCB works.

Swapping to a new joystick fixed those issues..

thank you for explaining and the help