Quantcast
Channel: Reprap Forum - Firmware - Marlin
Viewing all articles
Browse latest Browse all 2831

Enabling joystick - Hmm (no replies)

$
0
0
Hello

I have a Rambo 1.4 running Marlin, and I am trying to enable the joystick function without success.

I have mapped my required pins as I think I need in Config_adv.h:

/**
* Analog Joystick(s)
*/
//#define JOYSTICK
#if ENABLED(JOYSTICK)

#define JOY_X_PIN 3 // 3- Analog Ext 4
#define JOY_Y_PIN 4 // 4- Analog Ext 6
#define JOY_Z_PIN 5 // 5- Analog Ext 8
#define JOY_EN_PIN 4 // PWM ext pin 6

// Use M119 to find reasonable values after connecting your hardware:
#define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
#define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
#define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }
#endif

Do I need to uncomment the line //#define JOYSTICK to enable it? Or is that simply a header for the following lines of code?

I also have had a bit of a time trying to work out the pins on the Rambo board (I wish they included a detailed pinout map).
Does the attached image look correct?

Many thanks!

Viewing all articles
Browse latest Browse all 2831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>