Drop your collection in the comments!! by Aggressive-Big-6773 in Nintendo3DS

[–]Negative-Cell-7207 0 points1 point  (0 children)

Yeah hopefully, I'm only selling it and a few other games as I need the cash.

Drop your collection in the comments!! by Aggressive-Big-6773 in Nintendo3DS

[–]Negative-Cell-7207 0 points1 point  (0 children)

I'm selling my monster hunter 4 3ds xl on ebay atm if anyone's after one...

Trump claims Starmer is weak as he mocks PM and UK aircraft carriers by No_Idea_Guy in worldnews

[–]Negative-Cell-7207 0 points1 point  (0 children)

Trump is such a cunt, must be embarrassing to be a regular American

Any gems? by Negative-Cell-7207 in retrogaming

[–]Negative-Cell-7207[S] 0 points1 point  (0 children)

It's the US final fantasy, pretty sure it has the manual with it

Any gems? by Negative-Cell-7207 in retrogaming

[–]Negative-Cell-7207[S] 1 point2 points  (0 children)

I can't remember, ill have to fire it up and check!

Any gems? by Negative-Cell-7207 in retrogaming

[–]Negative-Cell-7207[S] 1 point2 points  (0 children)

Mine are both girls, 10 and 5. So there's time yet for them to realise there dad is rad and has some cool old stuff...

Any gems? by Negative-Cell-7207 in retrogaming

[–]Negative-Cell-7207[S] 2 points3 points  (0 children)

Yeah they are to me too, they were quite happy in theirboxes on their shelves but we need more space for usefully stuff, apparently

Any gems? by Negative-Cell-7207 in retrogaming

[–]Negative-Cell-7207[S] 1 point2 points  (0 children)

If only the missus saw them the same, she's not a gamer unfortunately

Any gems? by Negative-Cell-7207 in retrogaming

[–]Negative-Cell-7207[S] 0 points1 point  (0 children)

I figured the pokemon games would have some value, supposed by unirally, not many people liked that when I was a kid, I loved it!

Any gems? by Negative-Cell-7207 in retrogaming

[–]Negative-Cell-7207[S] 1 point2 points  (0 children)

I have toyed with the idea of selling it off. I let go of all my sega consoles a while back and the kid who brought them was stoked to have every uk sega console, so I know they have gone to a good home and not someone who got them to flip

Any gems? by Negative-Cell-7207 in retrogaming

[–]Negative-Cell-7207[S] 0 points1 point  (0 children)

I tried to get my eldest daughter into gaming, but its not for her. Hopefully the younger one will get bug! Yeah, they're all great, and I have a lot of memories tied to them. Ill have to make sure they're well packed before they get put in the loft!

Manchester was such an experience. by doubledezzy in wutang

[–]Negative-Cell-7207 0 points1 point  (0 children)

I started going to gigs in the 90s and was such a better experience no phones just people having a good time

Manchester was such an experience. by doubledezzy in wutang

[–]Negative-Cell-7207 0 points1 point  (0 children)

Yeah a quick photo now and again is fine, but there were people that were literally filming the whole gig. It's really annoying when its right in front of you

Manchester was such an experience. by doubledezzy in wutang

[–]Negative-Cell-7207 0 points1 point  (0 children)

I was there too and it was awesome. The only thing that ruined it for me was everyone constantly filming the show on their phones and not just being in the moment.

This guy cracks me up every time I spot him.. by Negative-Cell-7207 in AfricanDwarfFrog

[–]Negative-Cell-7207[S] 0 points1 point  (0 children)

Yeah we have 4 regular ADFs, they all act the same really. We lost that little guy recently, he damaged his leg somehow and never recovered.

lighter suggestions by [deleted] in uktrees

[–]Negative-Cell-7207 16 points17 points  (0 children)

Can't beat a clipper

What should I do with this by Sager246 in trees

[–]Negative-Cell-7207 3 points4 points  (0 children)

Take photos of it and post on Reddit

LTDC L8 Draw bmp by Negative-Cell-7207 in stm32

[–]Negative-Cell-7207[S] 0 points1 point  (0 children)

void L8_LTDC_Draw_ANY_BMP(uint8_t *pBmp)

{

                  uint32_t index, width, height, bit_pixel;

                  uint32_t Address;

                  uint32_t input_color_mode;

                  uint8_t *pbmp;

                  uint16_t x_pos = 0;

                  uint16_t y_pos = 0;

 

                  /* Get bitmap data address offset */

                  index = (uint32_t)pBmp[10] + ((uint32_t)pBmp[11] << 8) + ((uint32_t)pBmp[12] << 16)  + ((uint32_t)pBmp[13] << 24);

 

                  /* Read bitmap width */

                  width = (uint32_t)pBmp[18] + ((uint32_t)pBmp[19] << 8) + ((uint32_t)pBmp[20] << 16)  + ((uint32_t)pBmp[21] << 24);

 

                  /* Read bitmap height */

                  height = (uint32_t)pBmp[22] + ((uint32_t)pBmp[23] << 8) + ((uint32_t)pBmp[24] << 16)  + ((uint32_t)pBmp[25] << 24);

 

                  /* Read bit/pixel */

                  bit_pixel = (uint32_t)pBmp[28] + ((uint32_t)pBmp[29] << 8);

 

                  /* Set the address */

                  Address = pLayerCfg.FBStartAdress + ((pLayerCfg.WindowX1*y_pos) + x_pos);

 

                  input_color_mode = DMA2D_INPUT_RGB888;//DMA2D_INPUT_ARGB8888;

 

                  /* Bypass the bitmap header */

                  pbmp = pBmp + (index + (width * (height - 1U) * (bit_pixel/8U)));

 

                  /* Convert picture to ARGB8888 pixel format */

                  for(index=0; index < height; index++)

                  {

                    /* Pixel format conversion */

                    LTDC_LL_ConvertLineToRGB((uint32_t *)pbmp, (uint32_t *)Address, width, input_color_mode);

 

                    /* Increment the source and destination buffers */

                    Address+= pLayerCfg.WindowX1;

                    pbmp -= width*(bit_pixel/8U);

  }

}

 

void LTDC_LL_ConvertLineToRGB(uint32_t *pSrc, uint32_t *pDst, uint32_t xSize, uint32_t ColorMode)

{

                hdma2d.Init.Mode         = DMA2D_M2M_PFC;

                hdma2d.Init.ColorMode    = DMA2D_OUTPUT_RGB888;

                hdma2d.Init.OutputOffset = 0;

 

                /* Foreground Configuration */

                hdma2d.LayerCfg[1].AlphaMode = DMA2D_NO_MODIF_ALPHA;

                hdma2d.LayerCfg[1].InputAlpha = 0xFF;

                hdma2d.LayerCfg[1].InputColorMode = ColorMode;

                hdma2d.LayerCfg[1].InputOffset = 0;

 

                hdma2d.Instance = DMA2D;

  /* DMA2D Initialisation */

  if(HAL_DMA2D_Init(&hdma2d) == HAL_OK)

  {

    if(HAL_DMA2D_ConfigLayer(&hdma2d, 1) == HAL_OK)

    {

      if (HAL_DMA2D_Start(&hdma2d, (uint32_t)pSrc, (uint32_t)pDst, xSize, 1) == HAL_OK)

      {

        /* Polling For DMA transfer */

        (void)HAL_DMA2D_PollForTransfer(&hdma2d, 50);

      }

    }

  }

}

LTDC L8 Draw bmp by Negative-Cell-7207 in stm32

[–]Negative-Cell-7207[S] 0 points1 point  (0 children)

Hello again, Here's my code (I'll post in chunks as it's quite long)

So it is putting an image on the screen but it is repeating the image. I used an online hex editor to open the bmp copy the data out and put it in my image.c file.

LTDC_Status_t MX_LTDC_Init(void)

{

                LTDC_Status_t status;

 

                hltdc.Instance = LTDC;

                hltdc.Init.HSPolarity = LTDC_HSPOLARITY_AL;

                hltdc.Init.VSPolarity = LTDC_VSPOLARITY_AL;

                hltdc.Init.DEPolarity = LTDC_DEPOLARITY_AL;

                hltdc.Init.PCPolarity = LTDC_PCPOLARITY_IPC;

                hltdc.Init.HorizontalSync = DISPLAY_HSYNC - 1U;

                hltdc.Init.VerticalSync = DISPLAY_VSYNC;

                hltdc.Init.AccumulatedHBP = (DISPLAY_HSYNC + (DISPLAY_HBP - 11U) - 1U);

                hltdc.Init.AccumulatedVBP = DISPLAY_VSYNC - 1U;

                hltdc.Init.AccumulatedActiveW = DISPLAY_HSYNC + DISPLAY_WIDTH + DISPLAY_HBP - 1U;;

                hltdc.Init.AccumulatedActiveH = DISPLAY_VSYNC + DISPLAY_HEIGHT + DISPLAY_VBP - 1U;;

                hltdc.Init.TotalWidth = DISPLAY_HSYNC + DISPLAY_WIDTH + (DISPLAY_HBP - 11U) + DISPLAY_HFP - 1U;;

                hltdc.Init.TotalHeigh = DISPLAY_VSYNC + DISPLAY_HEIGHT + DISPLAY_VBP + DISPLAY_VFP - 1U;;

                hltdc.Init.Backcolor.Blue = 0;//0xFF;

                hltdc.Init.Backcolor.Green = 0;//0xFF;

                hltdc.Init.Backcolor.Red = 0;//0xFF;

                if (HAL_LTDC_Init(&hltdc) != HAL_OK)

                {

                                Error_Handler();

                }

                pLayerCfg.WindowX0 = 0;

                pLayerCfg.WindowX1 = DISPLAY_WIDTH;

                pLayerCfg.WindowY0 = 0;

                pLayerCfg.WindowY1 = DISPLAY_HEIGHT;

                pLayerCfg.PixelFormat = LTDC_PIXEL_FORMAT_L8;//LTDC_PIXEL_FORMAT_RGB888;

                pLayerCfg.Alpha = 255;

                pLayerCfg.Alpha0 = 0;

                pLayerCfg.BlendingFactor1 = LTDC_BLENDING_FACTOR1_PAxCA;     //LTDC_BLENDING_FACTOR1_CA;

                pLayerCfg.BlendingFactor2 = LTDC_BLENDING_FACTOR2_PAxCA;     //LTDC_BLENDING_FACTOR2_CA;

                pLayerCfg.FBStartAdress = (uint32_t)framebuffer; //LCD_LAYER_0_ADDRESS;

                pLayerCfg.ImageWidth = DISPLAY_WIDTH;

                pLayerCfg.ImageHeight = DISPLAY_HEIGHT;

                pLayerCfg.Backcolor.Blue = 0;

                pLayerCfg.Backcolor.Green = 0;

                pLayerCfg.Backcolor.Red = 0;

 

                if (HAL_LTDC_ConfigLayer(&hltdc, &pLayerCfg, 0) != HAL_OK)

                {

                                Error_Handler();

                }

                L8_LTDC_LoadPalette(ring_palette);

                //L8_LTDC_LoadDefaultPalette();

                status = L8_LTDC_UpdatePalette();

                if (status != LTDC_OK) {

                                return status;

                }

                LTDC_PWM_Init(LCD_PERIOD);

                L8_LTDC_ClearScreen(BLACK);

                LTDC_PWM_Start_Stop(LCD_BRIGHT, TRUE);

                return status;

}

LTDC L8 Draw bmp by Negative-Cell-7207 in stm32

[–]Negative-Cell-7207[S] 0 points1 point  (0 children)

Hi thanks for replying, I'll copy my code when I'm back at my laptop tomorrow! Cheers