'잡동사니'에 해당되는 글 13664건

  1. 2025.06.03 planetary annihilation : titans
  2. 2025.06.03 콜래트럴 데미지
  3. 2025.06.02 LD_DEBUG=libs
  4. 2025.06.02 stm32 pwm interrupt
  5. 2025.06.01 planetary annihilation - 은하계 전쟁
  6. 2025.05.31 planetary annihilation
  7. 2025.05.31 제사
  8. 2025.05.30 opengl texture
  9. 2025.05.29 stm32 stop mode - main thread
  10. 2025.05.28 외근

옮겨서 다시 하는 중

기술이 다찼는데.. 6개 이상은 못 늘리려나? -> 하다보니 늘려진다. 최대치는 모르겠음.

 

한번 만들어 지고 또 못쏘는줄 알았는데, 행성 선택 쪽에 무기발사가 있다니 -_-

 

작은 지도로 가장 쉽게 해서 일단 엔딩(?) 봄

Posted by 구차니

이번선거의 결과에 대한 요약을 한단어로 나타내면, 이렇게 표현이 될 것 같다.

미국의 군사용어인 ‘콜래트럴 데미지(collateral damage)’가 좋은 예다. 대규모 군사공격에 따르는 민간인 피해를 뜻하는 말이다. 의도하지 않은 희생, 부수적 피해 등으로 번역된다.

[링크 : https://www.joongang.co.kr/article/4717437]

 

부디 기우이길..

나치가 공산주의자들을 덮쳤을 때,
나는 침묵했다;
나는 공산주의자가 아니었다.

그 다음에 그들이 사회민주당원들을 가두었을 때,
나는 침묵했다;
나는 사회민주당원이 아니었다.

그 다음에 그들이 노동조합원들을 덮쳤을 때,
나는 아무 말도 하지 않았다;
나는 노동조합원이 아니었다.

그 다음에 그들이 유대인들에게 왔을 때,
나는 아무 말도 하지 않았다;
나는 유대인이 아니었다.

그들이 나에게 닥쳤을 때는,
나를 위해 말해 줄 이들이
아무도 남아 있지 않았다.

[링크 : https://ko.m.wikipedia.org/wiki/나치가_그들을_덮쳤을_때]

'개소리 왈왈 > 정치관련 신세한탄' 카테고리의 다른 글

전장련 시위 시작  (0) 2025.04.21
보수(保守)는 보수(報酬)를 먹고 자란다  (0) 2025.04.18
윤석열 탄핵  (0) 2025.04.04
제주항공 무안공항 대참사  (0) 2024.12.29
탄핵안 가결  (4) 2024.12.14
Posted by 구차니
Linux API/linux2025. 6. 2. 18:03

리눅스에서 공유 라이브러리(so) 호출시 경로등을 확인하기 용이한 디버깅 변수

 

LD_DEBUG=help cat
Valid options for the LD_DEBUG environment variable are:

  libs        display library search paths
  reloc       display relocation processing
  files       display progress for input file
  symbols     display symbol table processing
  bindings    display information about symbol binding
  versions    display version dependencies
  all         all previous options combined
  statistics  display relocation statistics
  unused      determined unused DSOs
  help        display this help message and exit

To direct the debugging output into a file instead of standard output
a filename can be specified using the LD_DEBUG_OUTPUT environment
variable.

[링크 : https://bnikolic.co.uk/blog/linux-ld-debug.html]

'Linux API > linux' 카테고리의 다른 글

linux device tree(dtb) 문법...?  (0) 2024.12.04
usb hid, hidraw  (0) 2024.03.11
linux 멀티터치 프로토콜  (0) 2024.03.08
btrfs CoW  (0) 2024.02.15
statvfs() 의 f_bavail과 f_bfree 차이  (0) 2024.02.15
Posted by 구차니
embeded/Cortex-M3 STM2025. 6. 2. 17:23

그나저나 stm32f4xx_hal_tim.c 에서 내가 만든 파일의 함수를 호출하게해서

pwm이 끝나면 카운트를 갂아 원하는 횟수만큼 소리내려고 했는데

interrupt 내에서 호출한 변수가 증가만 하고 리셋되지 않는 이상한 현상이 발생

해결책은 나중에 찾아봐야겠다.

/* stm32f4xx_hal_tim.c */


void HAL_TIM_IRQHandler(TIM_HandleTypeDef *htim)
{
  ...중략
  /* TIM Update event */
  if(__HAL_TIM_GET_FLAG(htim, TIM_FLAG_UPDATE) != RESET)
  {
    if(__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_UPDATE) !=RESET)
    {
      __HAL_TIM_CLEAR_IT(htim, TIM_IT_UPDATE);
      HAL_TIM_PeriodElapsedCallback(htim);
    }
  }
  ...중략
}

[링크 https://m.blog.naver.com/eziya76/220934409487]

 

__HAL_TIM_CLEAR_IT(&htim3, TIM_IT_UPDATE);
__HAL_TIM_ENABLE_IT(&htim3, TIM_IT_UPDATE);

void TIM3_IRQHandler(void)
{
    if (__HAL_TIM_GET_FLAG(&htim3, TIM_FLAG_UPDATE)) {
        __HAL_TIM_CLEAR_IT(&htim3, TIM_IT_UPDATE);
        // PWM 1회 출력 후 이벤트 처리
    }
}

 

쉬운 방법으로 One pulse mode도 있다

'embeded > Cortex-M3 STM' 카테고리의 다른 글

stm32 pwm 주파수 계산  (0) 2025.06.05
stm32 timer로 gpio 토글하기  (0) 2025.06.05
stm32 stop mode - main thread  (0) 2025.05.29
stm32 boot loader(shipping)  (0) 2025.05.13
stm32flash  (0) 2025.05.08
Posted by 구차니

싱글 플레이 - 튜토리얼은 끝냈으니

싱글 플레이 - 은하계 전쟁 시작

그런데... 난이도 낮춰서 그런가 너무 무난(?) 하네

 

탐사하면서 기술 얻고 처음에는 4개 슬롯인데. 슬롯도 하나 늘리고

그러면서 기술 하나하나 얻으며 하는 중

Posted by 구차니

2014년에 구매했던가 그런데 이제야 해보네..

실행하면 planetary annihilation : titans 를 하라고 뜨는데

 

그래도 먼가 다른가 싶어서 싱글을 해보는데

본 게임(?)은 멀티인지라 싱글은 먼가 튜토리얼의 맛배기 수준?

 

튜토리얼로 했나 싱글로 했나 기억이 안나는데 한 번 끝내고 나니

상위 메뉴에 COMMUNITY TUTORIAL이라고 뜨게 바뀌는 듯.

 

아무튼 10년의 세월은

그 당시 꽤나 높았던 걸 내장 그래픽으로 돌리는걸 가능하게 한다는게 참.. 신기하다.

ryzen 7 5800u 내장 그래픽으로 최대 그래픽 뽑아주다니.. (물론 멀티하면 다를지도?)

 

Posted by 구차니

어우 힘들다

'개소리 왈왈 > 육아관련 주저리' 카테고리의 다른 글

피곤 개피곤!!  (0) 2025.06.12
필터 구매  (0) 2025.06.06
외근  (0) 2025.05.28
피곤  (0) 2025.05.27
기절 기절 기절  (0) 2025.05.25
Posted by 구차니
Programming/openGL2025. 5. 30. 09:14

어렵다. 함수들 하나하나 찾아보고 머하는건지 맞춰봐야 할 듯.

 

Name
glGenTextures — generate texture names

C Specification
void glGenTextures( GLsizei n,
  GLuint * textures);
 
Parameters
n
Specifies the number of texture names to be generated.

textures
Specifies an array in which the generated texture names are stored.

[링크 : https://registry.khronos.org/OpenGL-Refpages/gl4/html/glGenTextures.xhtml]

 

Name
glBindTexture — bind a named texture to a texturing target

C Specification
void glBindTexture( GLenum target,
  GLuint texture);
 
Parameters
target
Specifies the target to which the texture is bound. Must be one of GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, GL_TEXTURE_1D_ARRAY, GL_TEXTURE_2D_ARRAY, GL_TEXTURE_RECTANGLE, GL_TEXTURE_CUBE_MAP, GL_TEXTURE_CUBE_MAP_ARRAY, GL_TEXTURE_BUFFER, GL_TEXTURE_2D_MULTISAMPLE or GL_TEXTURE_2D_MULTISAMPLE_ARRAY.

texture
Specifies the name of a texture.

[링크 : https://registry.khronos.org/OpenGL-Refpages/gl4/html/glBindTexture.xhtml]

 

void glTexStorage2D( GLenum target​, GLint levels​, GLint internalformat​, GLsizei width​, GLsizei height​ );
Valid target​s: GL_TEXTURE_2D, GL_TEXTURE_RECTANGLE, GL_TEXTURE_CUBE_MAP, or GL_TEXTURE_1D_ARRAY.
For 1D array textures, the number of array layers in each mipmap level is the height​ value. For rectangle textures, the number of mipmap levels must be 1.
void glTexStorage3D( GLenum target​, GLint levels​, GLint internalformat​, GLsizei width​, GLsizei height​, GLsizei depth​ );
Valid target​s: GL_TEXTURE_3D, GL_TEXTURE_2D_ARRAY, GL_TEXTURE_CUBE_MAP_ARRAY (this requires GL 4.0 or ARB_texture_cube_map_array)
For 2D array textures, the number of array layers in each mipmap level is the depth​ value.
For 2D cubemap array textures, the number of cubemap layer-faces is the depth​, which must be a multiple of 6. Therefore, the number of individual cubemaps in the array is given by depth​ / 6.

[링크 : https://www.khronos.org/opengl/wiki/Texture_Storage]

 

glTexImage2D(GL_TEXTURE_RECTANGLE, 0, internalformat​, width​, height​, 0, format​, type​, data​);

[링크 : https://www.khronos.org/opengl/wiki/Rectangle_Texture]

 

 

'Programming > openGL' 카테고리의 다른 글

openGL 은선제거  (0) 2025.07.29
openGL 스터디용 gemini 생성 코드  (0) 2025.07.16
blender in openGL  (0) 2025.04.28
opengl glortho gluperspective  (0) 2023.08.28
glReadPixels() 와 glUseProgram()  (0) 2022.11.17
Posted by 구차니
embeded/Cortex-M3 STM2025. 5. 29. 10:54

stm32 에서 gpio 핸들러에다가 stop mode 들어가게 해놨더니 작동안되서 찾아보니

main thread에서 stop이 들어가야 작동한다고 한다.

 

flag 세워주고 main loop에서 처리하면 끝

[링크 : https://community.st.com/t5/stm32-mcus-products/enter-exit-stop-mode-with-one-gpio-pin/td-p/621929]

'embeded > Cortex-M3 STM' 카테고리의 다른 글

stm32 timer로 gpio 토글하기  (0) 2025.06.05
stm32 pwm interrupt  (0) 2025.06.02
stm32 boot loader(shipping)  (0) 2025.05.13
stm32flash  (0) 2025.05.08
stm32 timer로 gpio 에 연결된 led on/off  (0) 2025.03.26
Posted by 구차니

집오니 퇴근시간 -_ㅠ

머 퇴근하니 바로 순간이동 한 느낌이라 나쁘진 않네

'개소리 왈왈 > 육아관련 주저리' 카테고리의 다른 글

필터 구매  (0) 2025.06.06
제사  (0) 2025.05.31
피곤  (0) 2025.05.27
기절 기절 기절  (0) 2025.05.25
날씨가..  (0) 2025.05.24
Posted by 구차니