分类 默认分类 下的文章

change SI4735 libraries on aresq aq1 si4732 sdr radio fix the SPEAKER no sound bug

1.jpg
First change C:UsersAdministratorDocumentsArduinolibrariesSI4735-masterSI4735.h

/**
 * @ingroup group18 MCU External Audio Mute 
 * 
 * @brief Sets the Hardware Audio Mute
 * @details Turns the Hardware audio mute on or off
 * 
 * @see setAudioMuteMcuPin
 * 
 * @param on  True or false
 */
inline void setHardwareAudioMute(bool on)
{
    if(on){
    digitalWrite(audioMuteMcuPin, LOW);//Reverse the 27 MUTE pin connect PAM8406
    }else{
    digitalWrite(audioMuteMcuPin, HIGH);//Reverse the 27 MUTE pin connect PAM8406
    }
    delayMicroseconds(300);
}

then change SI4735_2.8_TFT_SI5351_V4.0_AQ1's code you like the SPEAKER work now
https://www.mmdvm.club/index.php/aq1.html

to support v1.5.x switch to hackrf usb mode no black screen

/home/jumbo/hackrf/firmware/common/ui_portapack.c

const hackrf_ui_t* portapack_hackrf_ui_init() {

if( portapack() ) {  //switch to hackrf_usb mode, if portapack install set lcd blue screen
    return &portapack_hackrf_ui;
} else {
    return NULL;
}

}
/home/jumbo/hackrf/firmware/common/portapack.c
static uint32_t jtag_pp_idcode(void) {

cpld_jtag_take(&jtag_cpld);

/* TODO: Check if PortaPack TMS is floating or driven by an external device. */
gpio_output(jtag_cpld.gpio->gpio_pp_tms);

/* Test-Logic/Reset -> Run-Test/Idle -> Select-DR/Scan -> Capture-DR */
jtag_pp_shift(0b11111010, 8);

/* Shift-DR */
const uint32_t idcode = jtag_pp_shift(0, 32);

/* Exit1-DR -> Update-DR -> Run-Test/Idle -> ... -> Test-Logic/Reset */
jtag_pp_shift(0b11011111, 8);

cpld_jtag_release(&jtag_cpld);

return idcode;

}
static bool portapack_detect(void) {

return jtag_pp_idcode() == 0x020A50DD;   

//i change this code to "return jtag_pp_idcode() >0;" to support
//Portapack H2 TQFP100 v3.6pcb fix fw v1.4.2
}

static const portapack_t portapack_instance = {
};

static const portapack_t* portapack_pointer = NULL;

const portapack_t* portapack(void) {

return portapack_pointer;

}

void portapack_init(void) {

if( portapack_detect() ) {
    portapack_if_init();
    portapack_lcd_reset();
    portapack_lcd_init();
    portapack_pointer = &portapack_instance;
} else {
    portapack_pointer = NULL;
}

}

hackrf portapack h2 cpld update new QFP100

pcbV3.5.jpg

Because it is not easy to buy 5m40ze64c5n
so i replace new EPM240T100C5N instead it is QFP100 bigger then QFP64
but it works
every cpld flashed fw,if manyhem boot faile just dont shutdown the base,add A,B to let new
CPLD work
portapack.cpp

i2c0.start(i2c_config_boot_clock);

if( !portapack::cpld::update_if_necessary(portapack_cpld_config()) ) {

    A//shutdown_base();
    B//return false;

}

raspberry 2/3/4 zero 5inch 7inch tft ips screen for retropie

496341641.jpg
768484364.jpg
1009554322.jpg

add follow to tf card config.txt

For more options and information see

http://rpf.io/configtxt

Some settings may impact device functionality. See link above for details

Set GPIO pins to 24-Bit DPI Mode 7

GPIO 0 and 1 needed for DPI Clock and Data Enable

gpio=0=a2,np
gpio=1=a2,np

Set GPIO pins 2 and 3 to I2C Mode. These can be used for other things, if needed.

gpio=2=a0,np
gpio=3=a0,np

Set up color pins

gpio=4=a2,np
gpio=5=a2,np
gpio=6=a2,np
gpio=7=a2,np
gpio=8=a2,np
gpio=9=a2,np
gpio=10=a2,np
gpio=11=a2,np
gpio=12=a2,np
gpio=13=a2,np
gpio=14=a2,np
gpio=15=a2,np
gpio=16=a2,np
gpio=17=a2,np
gpio=18=a2,np
gpio=19=a2,np
gpio=20=a2,np
gpio=21=a2,np
gpio=22=a2,np
gpio=23=a2,np
gpio=24=a2,np
gpio=25=a2,np
gpio=26=a2,np
gpio=27=a2,np

Configure DPI signal

framebuffer_width=800
framebuffer_height=480
enable_dpi_lcd=1
display_default_lcd=1
dpi_group=2
dpi_mode=87
dpi_output_format=503847
dpi_timings=800 0 40 48 88 480 0 13 3 32 0 0 0 60 0 32000000 6